pub enum QuickCacheShardPolicy {
Recommended,
Single,
}Expand description
Controls how a QuickCacheBackend divides its weight budget.
Variants§
Recommended
Choose a shard count from the cache capacity and available parallelism.
Single
Give every entry access to one shared weight budget.
This avoids capacity fragmentation for a small number of large, unequal entries. Concurrent hits can still take the shard read lock.
Trait Implementations§
Source§impl Clone for QuickCacheShardPolicy
impl Clone for QuickCacheShardPolicy
impl Copy for QuickCacheShardPolicy
Source§impl Debug for QuickCacheShardPolicy
impl Debug for QuickCacheShardPolicy
Source§impl Default for QuickCacheShardPolicy
impl Default for QuickCacheShardPolicy
impl Eq for QuickCacheShardPolicy
Source§impl PartialEq for QuickCacheShardPolicy
impl PartialEq for QuickCacheShardPolicy
impl StructuralPartialEq for QuickCacheShardPolicy
Auto Trait Implementations§
impl Freeze for QuickCacheShardPolicy
impl RefUnwindSafe for QuickCacheShardPolicy
impl Send for QuickCacheShardPolicy
impl Sync for QuickCacheShardPolicy
impl Unpin for QuickCacheShardPolicy
impl UnsafeUnpin for QuickCacheShardPolicy
impl UnwindSafe for QuickCacheShardPolicy
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.