Skip to main content

AggregationCacheBackend

Trait AggregationCacheBackend 

Source
pub trait AggregationCacheBackend: Send + Sync {
    // Required methods
    fn namespace(&self) -> &str;
    fn get(&self, key: &str, max_age_millis: u64) -> Option<Vec<Record>>;
    fn put(&self, key: String, rows: Vec<Record>);
    fn invalidate_namespace(&self, namespace: &str);
}

Required Methods§

Source

fn namespace(&self) -> &str

Source

fn get(&self, key: &str, max_age_millis: u64) -> Option<Vec<Record>>

Source

fn put(&self, key: String, rows: Vec<Record>)

Source

fn invalidate_namespace(&self, namespace: &str)

Implementors§