pub struct CookieCacheConfig {
pub enabled: bool,
pub max_age: f64,
pub strategy: CookieCacheStrategy,
pub version: Option<CookieCacheVersion>,
}Expand description
Configuration for cookie-based session caching.
When enabled, session data is stored in a signed or encrypted cookie so that subsequent requests can skip the database lookup.
Fields§
§enabled: boolWhether the cookie cache is active.
max_age: f64Maximum age in seconds before a fresh DB lookup is required.
JavaScript falsy zero/NaN selects 300; other IEEE754 values are retained.
Default: 5 minutes.
strategy: CookieCacheStrategyStrategy used to protect the cached cookie value.
JWT uses the auth secret unless a locally managed JWT plugin signer is installed.
version: Option<CookieCacheVersion>Literal or asynchronous application-owned version policy.
Trait Implementations§
Source§impl Clone for CookieCacheConfig
impl Clone for CookieCacheConfig
Source§impl Debug for CookieCacheConfig
impl Debug for CookieCacheConfig
Auto Trait Implementations§
impl !RefUnwindSafe for CookieCacheConfig
impl !UnwindSafe for CookieCacheConfig
impl Freeze for CookieCacheConfig
impl Send for CookieCacheConfig
impl Sync for CookieCacheConfig
impl Unpin for CookieCacheConfig
impl UnsafeUnpin for CookieCacheConfig
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