mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-26 10:27:42 +02:00
feature(session): add deadpool-redis compatibility (#381)
* Add compatibility of `deadpool-redis` for the storage `redis_rs`. * Keep up-to-date the `actix-redis` version. * Format the project issued by command `cargo +nightly fmt`. * Add `deadpool-redis` into the documentation and tests. * Update CHANGES.md. * Update the documentation of `Deadpool Redis` section on `redis_rs`. * Replace `no_run` with `ignore` attribute on "Deadpool Redis" example to skip the doc tests failure. * Rollback the renaming `redis::cmd` to `cmd` for better reading and avoid shadowing, fix the wrong return type on builder function comment. * Format the project issued by command `cargo +nightly fmt`. * Format. * Fix feature naming from the last merge. * Fix feature missing from the last merge. * Format the project issued by command `cargo +nightly fmt`. * Re-import `cookie-session` feature. (Maybe was removed accidentally from the last merge?) * tmp * chore: bump deadpool-redis to 0.16 * chore: fixup rest of redis code for pool * fix: add missing cfg guard * docs: fix pool docs --------- Co-authored-by: Rob Ede <robjtede@icloud.com>
This commit is contained in:
@ -23,6 +23,7 @@ cookie-session = []
|
||||
redis-session = ["dep:redis", "dep:rand"]
|
||||
redis-session-native-tls = ["redis-session", "redis/tokio-native-tls-comp"]
|
||||
redis-session-rustls = ["redis-session", "redis/tokio-rustls-comp"]
|
||||
redis-pool = ["dep:deadpool-redis"]
|
||||
|
||||
[dependencies]
|
||||
actix-service = "2"
|
||||
@ -38,6 +39,7 @@ tracing = { version = "0.1.30", default-features = false, features = ["log"] }
|
||||
|
||||
# redis-session
|
||||
redis = { version = "0.26", default-features = false, features = ["tokio-comp", "connection-manager"], optional = true }
|
||||
deadpool-redis = { version = "0.16", optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
actix-session = { path = ".", features = ["cookie-session", "redis-session"] }
|
||||
|
Reference in New Issue
Block a user