Skip to main content

CacheInvalidator

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

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