pub struct L1Stats {
pub l1_hits: u64,
pub l2_hits: u64,
pub misses: u64,
pub l1_enabled: bool,
}Expand description
Snapshot of cache hit statistics for one CacheKit
and all of its clones.
Counts cover the value read path — get, interop_get, their SWR
variants, and the SecureCache equivalents. exists and reads that end
in a backend error are not counted.
Fields§
§l1_hits: u64Number of reads served from the L1 in-process cache.
l2_hits: u64Number of reads served from the L2 backend.
misses: u64Number of reads that found nothing in either layer.
l1_enabled: boolWhether the L1 cache is enabled on this client.
Implementations§
Trait Implementations§
impl Copy for L1Stats
impl Eq for L1Stats
impl StructuralPartialEq for L1Stats
Auto Trait Implementations§
impl Freeze for L1Stats
impl RefUnwindSafe for L1Stats
impl Send for L1Stats
impl Sync for L1Stats
impl Unpin for L1Stats
impl UnsafeUnpin for L1Stats
impl UnwindSafe for L1Stats
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§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<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