pub struct ResolvedTinyLfu {
pub sketch_bytes: usize,
pub promotion_threshold: u32,
pub probation_target_pct: u64,
pub aging_halflife_sec: u64,
}Expand description
Resolved W-TinyLFU tuning knobs. See ResolvedCache::tinylfu.
Fields§
§sketch_bytes: usizeCount-min sketch size in bytes. Default
crate::config::DEFAULT_TINYLFU_SKETCH_BYTES.
promotion_threshold: u32Prior sightings before a probation member promotes to main. Default
crate::config::DEFAULT_TINYLFU_PROMOTION_THRESHOLD.
probation_target_pct: u64Percent of cache.cache_size_mb the probation segment is capped to.
Validated to [1, 50]. Default
crate::config::DEFAULT_TINYLFU_PROBATION_TARGET_PCT.
aging_halflife_sec: u64Reserved: half-life in seconds for aging the frequency sketch. Resolved
and stored but not currently consulted by the shipped sketch (fixed
sample-count reset, not wall-clock aging). Default
crate::config::DEFAULT_TINYLFU_AGING_HALFLIFE_SEC.
Trait Implementations§
Source§impl Clone for ResolvedTinyLfu
impl Clone for ResolvedTinyLfu
impl Copy for ResolvedTinyLfu
Source§impl Debug for ResolvedTinyLfu
impl Debug for ResolvedTinyLfu
impl Eq for ResolvedTinyLfu
Source§impl PartialEq for ResolvedTinyLfu
impl PartialEq for ResolvedTinyLfu
impl StructuralPartialEq for ResolvedTinyLfu
Auto Trait Implementations§
impl Freeze for ResolvedTinyLfu
impl RefUnwindSafe for ResolvedTinyLfu
impl Send for ResolvedTinyLfu
impl Sync for ResolvedTinyLfu
impl Unpin for ResolvedTinyLfu
impl UnsafeUnpin for ResolvedTinyLfu
impl UnwindSafe for ResolvedTinyLfu
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more