Struct CacheLevelConfig
pub struct CacheLevelConfig {
pub max_size: usize,
pub ttl_ms: u64,
pub promotion_threshold: usize,
}Expand description
Cache level configuration
Fields§
§max_size: usizeMaximum size for this cache level
ttl_ms: u64Time-to-live in milliseconds
promotion_threshold: usizeAccess count threshold for promotion
Trait Implementations§
§impl Clone for CacheLevelConfig
impl Clone for CacheLevelConfig
§fn clone(&self) -> CacheLevelConfig
fn clone(&self) -> CacheLevelConfig
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 more§impl Debug for CacheLevelConfig
impl Debug for CacheLevelConfig
§impl Default for CacheLevelConfig
impl Default for CacheLevelConfig
§fn default() -> CacheLevelConfig
fn default() -> CacheLevelConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CacheLevelConfig
impl RefUnwindSafe for CacheLevelConfig
impl Send for CacheLevelConfig
impl Sync for CacheLevelConfig
impl Unpin for CacheLevelConfig
impl UnwindSafe for CacheLevelConfig
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