Struct salvo_extra::session::MemoryStore [−][src]
pub struct MemoryStore { /* fields omitted */ }
Expand description
in-memory session store
Because there is no external persistance, this session store is ephemeral and will be cleared on server restart.
DO NOT USE THIS IN A PRODUCTION DEPLOYMENT.
Implementations
Create a new instance of MemoryStore
Performs session cleanup. This should be run on an intermittent basis if this store is run for long enough that memory accumulation is a concern
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for MemoryStore
impl Send for MemoryStore
impl Sync for MemoryStore
impl Unpin for MemoryStore
impl !UnwindSafe for MemoryStore
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more