pub struct ShardedLruCache<K, V> { /* private fields */ }Expand description
16-shard thread-safe LRU cache with minimal lock contention under multi-core workloads.
Implementations§
Auto Trait Implementations§
impl<K, V> !Freeze for ShardedLruCache<K, V>
impl<K, V> Forget for ShardedLruCache<K, V>
impl<K, V> Move for ShardedLruCache<K, V>
impl<K, V> RefUnwindSafe for ShardedLruCache<K, V>
impl<K, V> Send for ShardedLruCache<K, V>
impl<K, V> Sync for ShardedLruCache<K, V>
impl<K, V> Unpin for ShardedLruCache<K, V>
impl<K, V> UnsafeUnpin for ShardedLruCache<K, V>where
Align4<u32>: UnsafeUnpin,
Align1<u8>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<(KeyRef<K>, NonNull<LruEntry<K, V>>)>: UnsafeUnpin,
NonZeroUsizeInner: UnsafeUnpin,
*mut LruEntry<K, V>: UnsafeUnpin,
impl<K, V> UnwindSafe for ShardedLruCache<K, V>
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