mirror of
https://github.com/actix/actix-extras.git
synced 2025-01-22 14:55:56 +01:00
parent
f4bcebdecd
commit
f6686c9292
@ -5,6 +5,8 @@
|
||||
* Added `cookie_http_only` functionality to RedisSession builder, setting this
|
||||
to false allows JavaScript to access cookies. Defaults to true.
|
||||
|
||||
* Changed type of parameter of ttl method to u32.
|
||||
|
||||
## [0.9.0-alpha.1]
|
||||
|
||||
* Update `actix` to 0.10.0-alpha.2
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user