Trait mouscache::CacheAccess [] [src]

pub trait CacheAccess {
    fn insert<K: ToString, O: Cacheable + Clone + 'static>(
        &mut self,
        key: K,
        obj: O
    ) -> Result<()>;
fn get<K: ToString, O: Cacheable + Clone + 'static>(
        &mut self,
        key: K
    ) -> Result<Option<O>>;
fn remove<K: ToString, O: Cacheable>(&mut self, key: K) -> Result<()>; }

Required Methods

Implementors