Trait CacheInvalidator

Source
pub trait CacheInvalidator: Send + Sync {
    // Required methods
    fn invalidate(&self, key: Box<dyn Any + Send>);
    fn cache_id(&self) -> &'static str;
}

Required Methods§

Source

fn invalidate(&self, key: Box<dyn Any + Send>)

Source

fn cache_id(&self) -> &'static str

Implementors§

Source§

impl<DBC> CacheInvalidator for DbCache<DBC>
where DBC: DbCommands,