Struct concread::arcache::stats::WriteCountStat
source · pub struct WriteCountStat {
pub read_ops: u64,
pub read_hits: u64,
pub p_weight: u64,
pub shared_max: u64,
pub freq: u64,
pub recent: u64,
pub all_seen_keys: u64,
}
Expand description
A simple track of counters from the cache
Fields§
§read_ops: u64
The number of attempts to read from the cache
read_hits: u64
The number of cache hits during this operation
p_weight: u64
The current cache weight between recent and frequent.
The maximum number of items in the shared cache.
freq: u64
The number of items in the frequent set at this point in time.
recent: u64
The number of items in the recent set at this point in time.
all_seen_keys: u64
The number of total keys seen through the cache’s lifetime.
Trait Implementations§
source§impl<K> ARCacheWriteStat<K> for WriteCountStat
impl<K> ARCacheWriteStat<K> for WriteCountStat
source§fn cache_clear(&mut self)
fn cache_clear(&mut self)
_
source§fn cache_read(&mut self)
fn cache_read(&mut self)
_
_
source§fn all_seen_keys(&mut self, i: u64)
fn all_seen_keys(&mut self, i: u64)
_
source§fn include_haunted(&mut self, k: &K)
fn include_haunted(&mut self, k: &K)
_
source§fn ghost_frequent_revive(&mut self, _k: &K)
fn ghost_frequent_revive(&mut self, _k: &K)
_
source§fn ghost_recent_revive(&mut self, _k: &K)
fn ghost_recent_revive(&mut self, _k: &K)
_
source§fn evict_from_recent(&mut self, _k: &K)
fn evict_from_recent(&mut self, _k: &K)
_
source§fn evict_from_frequent(&mut self, _k: &K)
fn evict_from_frequent(&mut self, _k: &K)
_
source§impl Debug for WriteCountStat
impl Debug for WriteCountStat
source§impl Default for WriteCountStat
impl Default for WriteCountStat
source§fn default() -> WriteCountStat
fn default() -> WriteCountStat
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WriteCountStat
impl RefUnwindSafe for WriteCountStat
impl Send for WriteCountStat
impl Sync for WriteCountStat
impl Unpin for WriteCountStat
impl UnwindSafe for WriteCountStat
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