pub struct TTLStats {
pub total_keys_with_ttl: u64,
pub expired_keys: u64,
pub next_expiration: Option<u64>,
}
Expand description
TTL statistics
Fields§
§total_keys_with_ttl: u64
Total number of keys with TTL set
expired_keys: u64
Number of expired keys waiting for cleanup
next_expiration: Option<u64>
Next expiration timestamp (if any)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TTLStats
impl<'de> Deserialize<'de> for TTLStats
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TTLStats, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TTLStats, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for TTLStats
impl Serialize for TTLStats
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for TTLStats
impl RefUnwindSafe for TTLStats
impl Send for TTLStats
impl Sync for TTLStats
impl Unpin for TTLStats
impl UnwindSafe for TTLStats
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