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