pub struct KevyInfo {
pub keys: usize,
pub used_memory: u64,
pub aof_bytes: u64,
pub expire_pending: usize,
pub evictions: u64,
pub expired_keys: u64,
}Expand description
Snapshot of a store’s runtime counters, returned by Store::info. A
cheap aggregate (one mutex lock); fields mirror the individual accessors.
Fields§
§keys: usizeLive key count (DBSIZE).
used_memory: u64Estimated resident bytes (INFO memory: used_memory).
aof_bytes: u64Current on-disk AOF size in bytes (0 when persistence is off).
expire_pending: usizeLive keys carrying a TTL — the expire-set size. A 0 here when you
expected TTLs is the tell that the TTL subsystem didn’t register them.
evictions: u64Total keys evicted by maxmemory so far.
expired_keys: u64Total keys expired (lazy + active reaper) so far.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KevyInfo
impl RefUnwindSafe for KevyInfo
impl Send for KevyInfo
impl Sync for KevyInfo
impl Unpin for KevyInfo
impl UnsafeUnpin for KevyInfo
impl UnwindSafe for KevyInfo
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