diff --git a/actix-limitation/CHANGES.md b/actix-limitation/CHANGES.md index 88ef3ed38..4b662f523 100644 --- a/actix-limitation/CHANGES.md +++ b/actix-limitation/CHANGES.md @@ -2,6 +2,8 @@ ## Unreleased +- Update `redis` dependency to `0.26`. + ## 0.5.1 - No significant changes since `0.5.0`. diff --git a/actix-limitation/Cargo.toml b/actix-limitation/Cargo.toml index 44c6f1ecf..06f7540fb 100644 --- a/actix-limitation/Cargo.toml +++ b/actix-limitation/Cargo.toml @@ -28,7 +28,7 @@ actix-web = { version = "4", default-features = false, features = ["cookies"] } chrono = "0.4" derive_more = "0.99.7" log = "0.4" -redis = { version = "0.25", default-features = false, features = ["tokio-comp"] } +redis = { version = "0.26", default-features = false, features = ["tokio-comp"] } time = "0.3" # session diff --git a/actix-session/CHANGES.md b/actix-session/CHANGES.md index 070b4351a..0e987ce6d 100644 --- a/actix-session/CHANGES.md +++ b/actix-session/CHANGES.md @@ -7,6 +7,7 @@ - Rename `redis-rs-tls-session` crate feature to `redis-session-native-tls`. - Remove `redis-actor-session` crate feature (and, therefore, the `actix-redis` based storage backend). - Expose `storage::generate_session_key()`. +- Update `redis` dependency to `0.26`. ## 0.9.0 diff --git a/actix-session/Cargo.toml b/actix-session/Cargo.toml index e484407d8..3de6f0e36 100644 --- a/actix-session/Cargo.toml +++ b/actix-session/Cargo.toml @@ -37,7 +37,7 @@ serde_json = { version = "1" } tracing = { version = "0.1.30", default-features = false, features = ["log"] } # redis-session -redis = { version = "0.25", default-features = false, features = ["tokio-comp", "connection-manager"], optional = true } +redis = { version = "0.26", default-features = false, features = ["tokio-comp", "connection-manager"], optional = true } [dev-dependencies] actix-session = { path = ".", features = ["cookie-session", "redis-session"] } diff --git a/actix-session/src/storage/redis_rs.rs b/actix-session/src/storage/redis_rs.rs index 3dafbc650..ca9aeb5e6 100644 --- a/actix-session/src/storage/redis_rs.rs +++ b/actix-session/src/storage/redis_rs.rs @@ -215,7 +215,7 @@ impl SessionStore for RedisSessionStore { SaveError::Other(err) => UpdateError::Other(err), }) } - Value::Int(_) | Value::Okay | Value::Status(_) => Ok(session_key), + Value::Int(_) | Value::Okay | Value::SimpleString(_) => Ok(session_key), val => Err(UpdateError::Other(anyhow::anyhow!( "Failed to update session state. {:?}", val