SessionCache

Trait SessionCache 

Source
pub trait SessionCache: Debug {
    // Required methods
    fn load(&self, session_id: &str) -> Result<Session, CacheError>;
    fn save(&self, session: &Session) -> Result<(), CacheError>;
}
Expand description

Stores cached data specific to a session, such as submission timeouts.

Required Methods§

Source

fn load(&self, session_id: &str) -> Result<Session, CacheError>

Load session data linked to a session from the cache.

Source

fn save(&self, session: &Session) -> Result<(), CacheError>

Writes session data to the cache.

Implementors§