mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-27 10:39:03 +02:00
@ -47,7 +47,7 @@ impl RedisSession {
|
||||
}
|
||||
|
||||
/// Set time to live in seconds for session value
|
||||
pub fn ttl(mut self, ttl: u16) -> Self {
|
||||
pub fn ttl(mut self, ttl: u32) -> Self {
|
||||
Rc::get_mut(&mut self.0).unwrap().ttl = format!("{}", ttl);
|
||||
self
|
||||
}
|
||||
|
Reference in New Issue
Block a user