pub struct L2Entry {
pub result: CachedResult,
pub fingerprint: String,
pub key: CacheKey,
pub access_count: u64,
pub last_access: Instant,
pub memory_size: usize,
}Expand description
Entry in the L2 warm cache
Fields§
§result: CachedResultThe cached result
fingerprint: StringNormalized query fingerprint
key: CacheKeyCache key
access_count: u64Access count
last_access: InstantLast access time
memory_size: usizeEstimated memory size
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for L2Entry
impl RefUnwindSafe for L2Entry
impl Send for L2Entry
impl Sync for L2Entry
impl Unpin for L2Entry
impl UnsafeUnpin for L2Entry
impl UnwindSafe for L2Entry
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 more