use std::collections::HashMap;
use crate::SessionError;
pub trait SessionStore: Send + Sync {
fn load(&self, id: &str) -> Result<Option<HashMap<String, String>>, SessionError>;
fn save(&self, id: &str, attributes: &HashMap<String, String>) -> Result<(), SessionError>;
fn delete(&self, id: &str) -> Result<(), SessionError>;
}