pub struct MemoryCache<T> { /* private fields */ }Expand description
In-memory cache with TTL and size limits.
Implementations§
Source§impl<T: Clone + Send + Sync + 'static> MemoryCache<T>
impl<T: Clone + Send + Sync + 'static> MemoryCache<T>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for MemoryCache<T>
impl<T> !RefUnwindSafe for MemoryCache<T>
impl<T> Send for MemoryCache<T>
impl<T> Sync for MemoryCache<T>
impl<T> Unpin for MemoryCache<T>
impl<T> !UnwindSafe for MemoryCache<T>
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