pub trait CacheConfig {
const EPOCHS: bool = false;
}Expand description
Configuration trait for Cache.
This trait allows customizing cache behavior through compile-time configuration.
Provided Associated Constants§
Sourceconst EPOCHS: bool = false
const EPOCHS: bool = false
Whether to track epochs for cheap invalidation via Cache::clear.
When enabled, the cache tracks an epoch counter that is incremented on each call to
Cache::clear. Entries are considered invalid if their epoch doesn’t match the current
epoch, allowing O(1) invalidation of all entries without touching each bucket.
Defaults to false.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.