pub struct KeyNumStats {
pub n_key: usize,
pub n_expires: usize,
pub n_expired: usize,
pub avg_ttl: u64,
}Expand description
Key and keyspace statistics aligned with Apache Kvrocks KeyNumStats. 键空间统计信息(对标 Apache Kvrocks KeyNumStats)
Fields§
§n_key: usizeTotal number of active (non-expired) keys.
n_expires: usizeTotal number of active keys with an expiration set (TTL).
n_expired: usizeTotal number of expired keys encountered during scanning.
avg_ttl: u64Average remaining TTL of keys with expiration (in seconds, aligned with Kvrocks avg_ttl).
Trait Implementations§
Source§impl Clone for KeyNumStats
impl Clone for KeyNumStats
Source§fn clone(&self) -> KeyNumStats
fn clone(&self) -> KeyNumStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for KeyNumStats
Source§impl Debug for KeyNumStats
impl Debug for KeyNumStats
Source§impl Default for KeyNumStats
impl Default for KeyNumStats
Source§fn default() -> KeyNumStats
fn default() -> KeyNumStats
Returns the “default value” for a type. Read more
impl Eq for KeyNumStats
Source§impl PartialEq for KeyNumStats
impl PartialEq for KeyNumStats
impl StructuralPartialEq for KeyNumStats
Auto Trait Implementations§
impl Freeze for KeyNumStats
impl RefUnwindSafe for KeyNumStats
impl Send for KeyNumStats
impl Sync for KeyNumStats
impl Unpin for KeyNumStats
impl UnsafeUnpin for KeyNumStats
impl UnwindSafe for KeyNumStats
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.