Trait cache_loader_async::backing::CacheBacking[][src]

pub trait CacheBacking<K, V> where
    K: Eq + Hash + Sized + Clone + Send,
    V: Sized + Clone + Send
{ fn get_mut(&mut self, key: &K) -> Option<&mut V>;
fn get(&mut self, key: &K) -> Option<&V>;
fn set(&mut self, key: K, value: V) -> Option<V>;
fn remove(&mut self, key: &K) -> Option<V>;
fn contains_key(&self, key: &K) -> bool;
fn remove_if(
        &mut self,
        predicate: Box<dyn Fn((&K, &V)) -> bool + Send + 'static>
    ); }

Required methods

Implementors