pub trait Cache: Send + Sync {
// Required methods
fn get(&self, key: &str) -> Option<String>;
fn set(&self, key: &str, value: String) -> Result<(), CacheError>;
}Expand description
Cache service trait
pub trait Cache: Send + Sync {
// Required methods
fn get(&self, key: &str) -> Option<String>;
fn set(&self, key: &str, value: String) -> Result<(), CacheError>;
}Cache service trait