pub struct SkmvConfig {
pub maximum_capacity: usize,
pub maximum_values_per_key: usize,
pub idle_timeout: Option<u32>,
pub time_to_live: Option<u32>,
}Expand description
Configuration for the SkmvCache initialization via SkmvCache::new.
Fields§
§maximum_capacity: usizeMaximum number of keys in the cache.
maximum_values_per_key: usizeMaximum number of values per key.
idle_timeout: Option<u32>Idle timeout for each key in the cache. When key expires due to inactivity all associated values are also removed.
Default is 60 seconds.
time_to_live: Option<u32>Time to live for each key in the cache. When key expires due to timeout all associated values are also removed.
Default is 60 seconds.
Auto Trait Implementations§
impl Freeze for SkmvConfig
impl RefUnwindSafe for SkmvConfig
impl Send for SkmvConfig
impl Sync for SkmvConfig
impl Unpin for SkmvConfig
impl UnsafeUnpin for SkmvConfig
impl UnwindSafe for SkmvConfig
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