pub trait CacheInvalidationHandler {
// Required methods
fn invalidate(&self, event: &InvalidationEvent) -> Result<()>;
fn cache_type(&self) -> &str;
fn can_handle(&self, event: &InvalidationEvent) -> bool;
}
Expand description
Cache invalidation handler trait
Required Methods§
Sourcefn invalidate(&self, event: &InvalidationEvent) -> Result<()>
fn invalidate(&self, event: &InvalidationEvent) -> Result<()>
Sourcefn cache_type(&self) -> &str
fn cache_type(&self) -> &str
Get cache type name
Sourcefn can_handle(&self, event: &InvalidationEvent) -> bool
fn can_handle(&self, event: &InvalidationEvent) -> bool
Check if this handler can handle the event