pub struct LruEviction;Expand description
Evicts by last access, oldest first, until the sweep reaches
target_bytes or spends its budget. Promotes nothing.
Equal recencies — every blob that carries the open-time recency seed shares one instant — release largest first, so the sweep reaches its target in fewer releases.
Trait Implementations§
Source§impl Clone for LruEviction
impl Clone for LruEviction
impl Copy for LruEviction
Source§impl Debug for LruEviction
impl Debug for LruEviction
Source§impl Default for LruEviction
impl Default for LruEviction
Source§impl EvictionPolicy for LruEviction
impl EvictionPolicy for LruEviction
Source§fn plan(&self, ctx: &EvictionContext<'_>) -> EvictionPlan
fn plan(&self, ctx: &EvictionContext<'_>) -> EvictionPlan
The one sweep-time decision: what leaves, what graduates. A policy that
ranks by frequency reads the shared
FrequencyEstimator directly — the
engine feeds that estimator on every serve. candidates is already
stripped of pins and probe-holds by the engine; a deny-listed hash stays
a candidate even when pinned (deny wins over pin).Auto Trait Implementations§
impl Freeze for LruEviction
impl RefUnwindSafe for LruEviction
impl Send for LruEviction
impl Sync for LruEviction
impl Unpin for LruEviction
impl UnsafeUnpin for LruEviction
impl UnwindSafe for LruEviction
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<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 moreCreates a shared type from an unshared type.