pub trait CacheInvalidator: Send + Sync {
// Required methods
fn invalidate(&self, key: Box<dyn Any + Send>);
fn cache_id(&self) -> &'static str;
}Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".