pub trait SessionStore: Send + Sync {
// Required methods
fn get(&self, session_id: &str) -> Option<Session>;
fn set(&self, session: Session);
fn remove(&self, session_id: &str);
fn cleanup_expired(&self);
}Expand description
Session store trait
Required Methods§
Sourcefn cleanup_expired(&self)
fn cleanup_expired(&self)
Clean up expired sessions