pub struct CacheStats { /* private fields */ }
Expand description
Information regarding the usage of the in-memory cache
Note: these metrics are only collected when the “cache_metrics
” feature is enabled
Implementations§
source§impl CacheStats
impl CacheStats
sourcepub fn evictions(&self) -> u64
pub fn evictions(&self) -> u64
Number of times that data has been evicted, due to the cache being full
To increase the cache size use Builder::set_cache_size
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CacheStats
impl RefUnwindSafe for CacheStats
impl Send for CacheStats
impl Sync for CacheStats
impl Unpin 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