pub struct CacheGroup<'a, B, S, M>{ /* private fields */ }Expand description
A logical grouping of cache entries with shared namespace and invalidation
Implementations§
Source§impl<'a, B, S, M> CacheGroup<'a, B, S, M>
impl<'a, B, S, M> CacheGroup<'a, B, S, M>
Sourcepub async fn get<T>(&self, key: impl CacheKey) -> Result<CacheResult<T>>where
T: DeserializeOwned,
pub async fn get<T>(&self, key: impl CacheKey) -> Result<CacheResult<T>>where
T: DeserializeOwned,
Get a value from the group
Source§impl<'a, B, S, M> CacheGroup<'a, B, S, M>
impl<'a, B, S, M> CacheGroup<'a, B, S, M>
Auto Trait Implementations§
impl<'a, B, S, M> Freeze for CacheGroup<'a, B, S, M>
impl<'a, B, S, M> !RefUnwindSafe for CacheGroup<'a, B, S, M>
impl<'a, B, S, M> Send for CacheGroup<'a, B, S, M>
impl<'a, B, S, M> Sync for CacheGroup<'a, B, S, M>
impl<'a, B, S, M> Unpin for CacheGroup<'a, B, S, M>
impl<'a, B, S, M> !UnwindSafe for CacheGroup<'a, B, S, M>
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