pub struct MemoryCache { /* private fields */ }Expand description
Minimal in-memory Cache implementation backed by a Mutex<HashMap>.
Used primarily in tests and examples.
Implementations§
Source§impl MemoryCache
impl MemoryCache
Trait Implementations§
Source§impl Cache for MemoryCache
impl Cache 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