pub trait CacheStore<Value> {
// Required methods
fn store<T: Into<String>>(&mut self, cache_id: T, token: Value);
fn get(&self, cache_id: &str) -> Option<Value>;
fn evict(&self, cache_id: &str) -> Option<Value>;
}
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.