1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-23 15:51:06 +01:00

docs(session): add session_ttl aliases

This commit is contained in:
Rob Ede 2024-02-19 16:34:25 +00:00
parent a71c7f6a90
commit 563d6e0b20
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933

View File

@ -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