pub struct CacheStats {
pub hits: u64,
pub misses: u64,
pub inserts: u64,
pub removals: u64,
pub expirations: u64,
pub evictions: u64,
pub current_entries: usize,
pub current_bytes: usize,
pub max_entries: usize,
pub max_bytes: usize,
}Expand description
Counters and bounded-resource state reported by a MemoryCache.
Fields§
§hits: u64Number of successful reads.
misses: u64Number of reads that did not return a live entry.
inserts: u64Number of insert operations accepted by the cache.
removals: u64Number of explicit removals.
expirations: u64Number of entries removed after their TTL elapsed.
evictions: u64Number of live entries removed to satisfy an LRU bound.
current_entries: usizeCurrent number of live entries.
current_bytes: usizeCurrent size of keys and values in bytes.
max_entries: usizeConfigured maximum number of entries.
max_bytes: usizeConfigured maximum number of key and value bytes.
Trait Implementations§
Source§impl Clone for CacheStats
impl Clone for CacheStats
Source§impl Debug for CacheStats
impl Debug for CacheStats
Source§impl Default for CacheStats
impl Default for CacheStats
impl Eq for CacheStats
Source§impl PartialEq for CacheStats
impl PartialEq for CacheStats
Source§impl Serialize for CacheStats
impl Serialize for CacheStats
impl StructuralPartialEq for CacheStats
Auto Trait Implementations§
impl Forget for CacheStats
impl Freeze for CacheStats
impl Move for CacheStats
impl RefUnwindSafe for CacheStats
impl Send for CacheStats
impl Sync for CacheStats
impl Unpin for CacheStats
impl UnsafeUnpin for CacheStats
impl UnwindSafe for CacheStats
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