pub struct SessionCacheConfig {
pub default_ttl: Duration,
pub max_entries: usize,
pub respect_cookie_expiry: bool,
}Fields§
§default_ttl: DurationTTL applied when the underlying cookies have no usable expiry.
max_entries: usizeHard cap on cached domains. Soft eviction via random sampling once hit.
If true, derive expires_at from the soonest cookie expiry.
Trait Implementations§
Source§impl Clone for SessionCacheConfig
impl Clone for SessionCacheConfig
Source§fn clone(&self) -> SessionCacheConfig
fn clone(&self) -> SessionCacheConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionCacheConfig
impl Debug for SessionCacheConfig
Auto Trait Implementations§
impl Freeze for SessionCacheConfig
impl RefUnwindSafe for SessionCacheConfig
impl Send for SessionCacheConfig
impl Sync for SessionCacheConfig
impl Unpin for SessionCacheConfig
impl UnsafeUnpin for SessionCacheConfig
impl UnwindSafe for SessionCacheConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more