diff --git a/CHANGES.md b/CHANGES.md index ee7e0799a..59898cbab 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,11 @@ # Changes +## 0.7 (2019-09-25) + +* added cache_keygen functionality to RedisSession builder, enabling support for + customizable cache key creation + + ## 0.6.1 (2019-07-19) * remove ClonableService usage diff --git a/Cargo.toml b/Cargo.toml index 6cf5d1613..28b0e688c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "actix-redis" -version = "0.6.1" +version = "0.7.0" authors = ["Nikolay Kim "] description = "Redis integration for actix framework" license = "MIT/Apache-2.0" diff --git a/src/session.rs b/src/session.rs index fbacfba06..9cd903a59 100644 --- a/src/session.rs +++ b/src/session.rs @@ -88,6 +88,7 @@ impl RedisSession { self } + /// Set a custom cache key generation strategy, expecting session key as input pub fn cache_keygen(mut self, keygen: Box String>) -> Self { Rc::get_mut(&mut self.0).unwrap().cache_keygen = keygen; self