pub struct MokaCache<K: Hash + Eq + Send + Sync + 'static, V: Clone + Send + Sync + 'static> {
pub cache: Cache<K, V>,
/* private fields */
}
Expand description
Cache using moka
.
Fields§
§cache: Cache<K, V>
The inner cache, with direct access allowed. Please check the size of your item before inserting.
Trait Implementations§
Auto Trait Implementations§
impl<K, V> !RefUnwindSafe for MokaCache<K, V>
impl<K, V> Send for MokaCache<K, V>
impl<K, V> Sync for MokaCache<K, V>
impl<K, V> Unpin for MokaCache<K, V>
impl<K, V> !UnwindSafe for MokaCache<K, V>
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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