pub enum WarmingStrategy {
Startup,
Scheduled(Duration),
MissRateTrigger {
threshold: f64,
check_interval: Duration,
},
OnDemand,
AccessPattern {
min_access_count: u32,
time_window: Duration,
},
}Expand description
Cache warming strategy
Variants§
Startup
Warm on application startup
Scheduled(Duration)
Warm on a scheduled interval
MissRateTrigger
Warm when cache miss rate exceeds threshold
OnDemand
Warm on demand (manual trigger)
AccessPattern
Warm based on access patterns
Trait Implementations§
Source§impl Clone for WarmingStrategy
impl Clone for WarmingStrategy
Source§fn clone(&self) -> WarmingStrategy
fn clone(&self) -> WarmingStrategy
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 moreAuto Trait Implementations§
impl Freeze for WarmingStrategy
impl RefUnwindSafe for WarmingStrategy
impl Send for WarmingStrategy
impl Sync for WarmingStrategy
impl Unpin for WarmingStrategy
impl UnsafeUnpin for WarmingStrategy
impl UnwindSafe for WarmingStrategy
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