pub struct CacheStatistics {
pub hit: usize,
pub miss: usize,
pub invalidate: usize,
}Available on crate feature
cache-aio only.Expand description
CacheStatistics holds statistics generated by Client Side Caching.
Fields§
§hit: usizeCount of how many cache hits occurred.
miss: usizeCount of how many cache misses occurred.
invalidate: usizeCount of how many cache item is invalidated via crate::types::PushKind::Invalidate or LRU.
If there is multiple cache item per key it will be increased multiple times instead of 1.
Trait Implementations§
Source§impl Debug for CacheStatistics
impl Debug for CacheStatistics
Source§impl Default for CacheStatistics
impl Default for CacheStatistics
Source§fn default() -> CacheStatistics
fn default() -> CacheStatistics
Returns the “default value” for a type. Read more
Source§impl From<Arc<Statistics>> for CacheStatistics
impl From<Arc<Statistics>> for CacheStatistics
Source§impl PartialEq for CacheStatistics
impl PartialEq for CacheStatistics
impl Eq for CacheStatistics
impl StructuralPartialEq for CacheStatistics
Auto Trait Implementations§
impl Freeze for CacheStatistics
impl RefUnwindSafe for CacheStatistics
impl Send for CacheStatistics
impl Sync for CacheStatistics
impl Unpin for CacheStatistics
impl UnwindSafe for CacheStatistics
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.