pub struct CacheEntryItem {
pub key: String,
pub value: Vec<u8>,
pub ttl_ms: u64,
pub created_at: u64,
pub last_access: u64,
pub access_count: u64,
pub dirty: bool,
}Expand description
A single cache entry with key, value, TTL and access tracking.
Fields§
§key: String§value: Vec<u8>§ttl_ms: u64§created_at: u64§last_access: u64§access_count: u64§dirty: boolTrait Implementations§
Source§impl Clone for CacheEntryItem
impl Clone for CacheEntryItem
Source§fn clone(&self) -> CacheEntryItem
fn clone(&self) -> CacheEntryItem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CacheEntryItem
impl RefUnwindSafe for CacheEntryItem
impl Send for CacheEntryItem
impl Sync for CacheEntryItem
impl Unpin for CacheEntryItem
impl UnsafeUnpin for CacheEntryItem
impl UnwindSafe for CacheEntryItem
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