pub struct CacheRegistry<V: Clone + Send + Sync + 'static> { /* private fields */ }Expand description
A thread-safe registry of named caches of a single value type.
Use this where FusionCache uses keyed/named caches from DI: register a cache under a name once, then resolve it anywhere.
Implementations§
Source§impl<V: Clone + Send + Sync + 'static> CacheRegistry<V>
impl<V: Clone + Send + Sync + 'static> CacheRegistry<V>
Trait Implementations§
Auto Trait Implementations§
impl<V> !Freeze for CacheRegistry<V>
impl<V> RefUnwindSafe for CacheRegistry<V>
impl<V> Send for CacheRegistry<V>
impl<V> Sync for CacheRegistry<V>
impl<V> Unpin for CacheRegistry<V>
impl<V> UnsafeUnpin for CacheRegistry<V>
impl<V> UnwindSafe for CacheRegistry<V>
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