pub struct MokaKeyCache { /* private fields */ }Available on crate feature
moka and non-WebAssembly only.Expand description
A Moka-backed in-memory key cache with TTL-based expiration.
Implementations§
Trait Implementations§
Source§impl Debug for MokaKeyCache
impl Debug for MokaKeyCache
Source§impl Default for MokaKeyCache
impl Default for MokaKeyCache
Source§impl KeyCache for MokaKeyCache
impl KeyCache for MokaKeyCache
Source§fn get<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<KeySet>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<KeySet>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Gets the cached key set. Read more
Auto Trait Implementations§
impl Freeze for MokaKeyCache
impl !RefUnwindSafe for MokaKeyCache
impl Send for MokaKeyCache
impl Sync for MokaKeyCache
impl Unpin for MokaKeyCache
impl UnsafeUnpin for MokaKeyCache
impl !UnwindSafe for MokaKeyCache
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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