pub struct CacheManagerConfig {
pub default_ttl: Option<Duration>,
pub namespace: Option<String>,
pub ttl_jitter: f64,
}Expand description
Configuration for CacheManager
Fields§
§default_ttl: Option<Duration>Default TTL for entries without explicit TTL
namespace: Option<String>Namespace prefix for all keys
ttl_jitter: f64TTL jitter percentage (0.0 - 1.0) to prevent thundering herd
Implementations§
Trait Implementations§
Source§impl Clone for CacheManagerConfig
impl Clone for CacheManagerConfig
Source§fn clone(&self) -> CacheManagerConfig
fn clone(&self) -> CacheManagerConfig
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 moreSource§impl Debug for CacheManagerConfig
impl Debug for CacheManagerConfig
Auto Trait Implementations§
impl Freeze for CacheManagerConfig
impl RefUnwindSafe for CacheManagerConfig
impl Send for CacheManagerConfig
impl Sync for CacheManagerConfig
impl Unpin for CacheManagerConfig
impl UnwindSafe for CacheManagerConfig
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