Struct any_cache::HashCache
[−]
[src]
pub struct HashCache { /* fields omitted */ }
An implementation of a cache with a HashMap
.
Methods
impl HashCache
[src]
fn new() -> Self
Trait Implementations
impl Default for HashCache
[src]
impl Cache for HashCache
[src]
fn save<K, T>(&mut self, key: K, value: T) where
T: Any + 'static,
K: CacheKey<Target = T>,
T: Any + 'static,
K: CacheKey<Target = T>,
fn get<K, T>(&self, key: &K) -> Option<&T> where
T: Any + 'static,
K: CacheKey<Target = T>,
T: Any + 'static,
K: CacheKey<Target = T>,
fn remove<K, T>(&mut self, key: &K) -> Option<T> where
T: Any + 'static,
K: CacheKey<Target = T>,
T: Any + 'static,
K: CacheKey<Target = T>,