pub struct KeyspaceStats {
pub key_count: usize,
pub used_bytes: usize,
pub keys_with_expiry: usize,
pub keys_expired: u64,
pub keys_evicted: u64,
pub oom_rejections: u64,
pub keyspace_hits: u64,
pub keyspace_misses: u64,
}Expand description
Aggregated statistics for a keyspace.
Fields§
§key_count: usizeNumber of live keys.
used_bytes: usizeEstimated memory usage in bytes.
keys_with_expiry: usizeNumber of keys with an expiration set.
keys_expired: u64Cumulative count of keys removed by expiration (lazy + active).
keys_evicted: u64Cumulative count of keys removed by eviction.
oom_rejections: u64Cumulative count of write commands rejected due to memory limits.
keyspace_hits: u64Cumulative count of successful key lookups.
keyspace_misses: u64Cumulative count of key lookups that found no key (expired or absent).
Trait Implementations§
Source§impl Clone for KeyspaceStats
impl Clone for KeyspaceStats
Source§fn clone(&self) -> KeyspaceStats
fn clone(&self) -> KeyspaceStats
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 moreSource§impl Debug for KeyspaceStats
impl Debug for KeyspaceStats
Source§impl PartialEq for KeyspaceStats
impl PartialEq for KeyspaceStats
impl Eq for KeyspaceStats
impl StructuralPartialEq for KeyspaceStats
Auto Trait Implementations§
impl Freeze for KeyspaceStats
impl RefUnwindSafe for KeyspaceStats
impl Send for KeyspaceStats
impl Sync for KeyspaceStats
impl Unpin for KeyspaceStats
impl UnsafeUnpin for KeyspaceStats
impl UnwindSafe for KeyspaceStats
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