graph_core/cache/
cache_store.rs

1pub trait CacheStore<Value> {
2    /// Store Value given cache id.
3    fn store<T: Into<String>>(&mut self, cache_id: T, token: Value);
4
5    /// Get Value from cache given matching cache id.
6    fn get(&self, cache_id: &str) -> Option<Value>;
7
8    /// Evict or remove value from cache given cache id.
9    fn evict(&self, cache_id: &str) -> Option<Value>;
10}