pub enum StoredCachePolicy {
Permanent,
FRs(u64, u64),
}Variants§
Permanent
No eviction on clean or write. Constrained only by overall storage limit or max_size
(if set). Will only be evicted if dependencies change and evict_on_dependency_change
is set.
FRs(u64, u64)
Prioritize the most Frequently accessed, Recently accessed and smallest Sized items
(frequency_equality_threshold (hit count), recency_equality_threshold (seconds))
Trait Implementations§
Source§impl Clone for StoredCachePolicy
impl Clone for StoredCachePolicy
Source§fn clone(&self) -> StoredCachePolicy
fn clone(&self) -> StoredCachePolicy
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 StoredCachePolicy
impl Debug for StoredCachePolicy
Source§impl<'de> Deserialize<'de> for StoredCachePolicy
impl<'de> Deserialize<'de> for StoredCachePolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StoredCachePolicy
impl RefUnwindSafe for StoredCachePolicy
impl Send for StoredCachePolicy
impl Sync for StoredCachePolicy
impl Unpin for StoredCachePolicy
impl UnwindSafe for StoredCachePolicy
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