mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-23 23:51:06 +01:00
docs(session): add session_ttl aliases
This commit is contained in:
parent
a71c7f6a90
commit
563d6e0b20
@ -131,6 +131,7 @@ impl PersistentSession {
|
|||||||
///
|
///
|
||||||
/// A persistent session can live more than the specified TTL if the TTL is extended.
|
/// A persistent session can live more than the specified TTL if the TTL is extended.
|
||||||
/// See [`session_ttl_extension_policy`](Self::session_ttl_extension_policy) for more details.
|
/// See [`session_ttl_extension_policy`](Self::session_ttl_extension_policy) for more details.
|
||||||
|
#[doc(alias = "max_age", alias = "max age", alias = "expires")]
|
||||||
pub fn session_ttl(mut self, session_ttl: Duration) -> Self {
|
pub fn session_ttl(mut self, session_ttl: Duration) -> Self {
|
||||||
self.session_ttl = session_ttl;
|
self.session_ttl = session_ttl;
|
||||||
self
|
self
|
||||||
|
Loading…
Reference in New Issue
Block a user