Cache

Trait Cache 

Source
pub trait Cache<K = String> {
    // Required methods
    fn get(&self, key: &K) -> Result<CacheState>;
    fn set(&self, key: &K, value: &HttpResponse) -> Result<()>;
    fn update(
        &self,
        key: &K,
        value: &HttpResponse,
        field: &ResponseField,
    ) -> Result<()>;
}

Required Methods§

Source

fn get(&self, key: &K) -> Result<CacheState>

Source

fn set(&self, key: &K, value: &HttpResponse) -> Result<()>

Source

fn update( &self, key: &K, value: &HttpResponse, field: &ResponseField, ) -> Result<()>

Implementors§