pub struct MemoryCache(/* private fields */);Expand description
Bounded process-local decoded-principal LRU. A hit only clones an Arc.
Implementations§
Source§impl MemoryCache
impl MemoryCache
pub fn new(capacity: NonZeroUsize) -> Self
pub fn clear(&self)
Trait Implementations§
Source§impl PrincipalCache for MemoryCache
impl PrincipalCache for MemoryCache
Auto Trait Implementations§
impl !Freeze for MemoryCache
impl RefUnwindSafe for MemoryCache
impl Send for MemoryCache
impl Sync for MemoryCache
impl Unpin for MemoryCache
impl UnsafeUnpin for MemoryCache
impl UnwindSafe for MemoryCache
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