1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-26 18:37:41 +02:00

Replace deprecated from_master with derive_from (#82)

This commit is contained in:
Yuki Okushi
2020-07-14 19:15:30 +09:00
committed by GitHub
parent 39fe80df40
commit 2a20ce4568
3 changed files with 8 additions and 8 deletions

View File

@ -32,7 +32,7 @@ impl RedisSession {
/// * `addr` - address of the redis server
pub fn new<S: Into<String>>(addr: S, key: &[u8]) -> RedisSession {
RedisSession(Rc::new(Inner {
key: Key::from_master(key),
key: Key::derive_from(key),
cache_keygen: Box::new(|key: &str| format!("session:{}", &key)),
ttl: "7200".to_owned(),
addr: RedisActor::start(addr),