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>(&mut self, key: K, value: K::Target) where
K::Target: Any + 'static,
K: CacheKey,
K::Target: Any + 'static,
K: CacheKey,
fn get<K>(&self, key: &K) -> Option<&K::Target> where
K::Target: Any + 'static,
K: CacheKey,
K::Target: Any + 'static,
K: CacheKey,
fn remove<K>(&mut self, key: &K) -> Option<K::Target> where
K::Target: Any + 'static,
K: CacheKey,
K::Target: Any + 'static,
K: CacheKey,