1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-27 10:39:03 +02:00

updated version of crate, CHANGES.md, documented cache_keygen method, ready for release

This commit is contained in:
dowwie
2019-09-25 08:42:49 -04:00
parent 7f7962663d
commit 468118a8ee
3 changed files with 8 additions and 1 deletions

View File

@ -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<dyn Fn(&str) -> String>) -> Self {
Rc::get_mut(&mut self.0).unwrap().cache_keygen = keygen;
self