pub trait CacheOptionsSetters: Holds<CacheOptions> + Sized {
// Required methods
fn ttl(self, value: impl Into<Duration>) -> Self;
fn negative_ttl(self, value: impl Into<Duration>) -> Self;
fn max_entries(self, value: u64) -> Self;
}Expand description
The typed setters of CacheOptions, for any builder that holds its settings.
Required Methods§
Sourcefn negative_ttl(self, value: impl Into<Duration>) -> Self
fn negative_ttl(self, value: impl Into<Duration>) -> Self
How long “no such person” or a denial is kept.
Sourcefn max_entries(self, value: u64) -> Self
fn max_entries(self, value: u64) -> Self
The most answers kept of each kind (lookups, decisions); 0 keeps none.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".