pub struct MemoryInvalidationManager<B: CacheBackend> { /* private fields */ }Expand description
In-memory invalidation manager implementation
Implementations§
Source§impl<B: CacheBackend> MemoryInvalidationManager<B>
impl<B: CacheBackend> MemoryInvalidationManager<B>
Trait Implementations§
Source§impl<B: CacheBackend> InvalidationManager for MemoryInvalidationManager<B>
impl<B: CacheBackend> InvalidationManager for MemoryInvalidationManager<B>
Source§fn invalidate_pattern<'life0, 'async_trait>(
&'life0 self,
pattern: PatternStrategy,
) -> Pin<Box<dyn Future<Output = CacheResult<Vec<CacheKey>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn invalidate_pattern<'life0, 'async_trait>(
&'life0 self,
pattern: PatternStrategy,
) -> Pin<Box<dyn Future<Output = CacheResult<Vec<CacheKey>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Invalidate cache entries matching a pattern
Invalidate cache entries by tags
Source§fn invalidate_expired<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = CacheResult<Vec<CacheKey>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn invalidate_expired<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = CacheResult<Vec<CacheKey>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Invalidate expired entries based on time policies
Source§fn invalidate_dependencies<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
keys: &'life1 [&'life2 str],
) -> Pin<Box<dyn Future<Output = CacheResult<Vec<CacheKey>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn invalidate_dependencies<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
keys: &'life1 [&'life2 str],
) -> Pin<Box<dyn Future<Output = CacheResult<Vec<CacheKey>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Invalidate entries dependent on given keys
Source§fn get_tracked_keys<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = CacheResult<Vec<CacheKey>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_tracked_keys<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = CacheResult<Vec<CacheKey>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get all keys tracked by this manager
Source§fn register_entry<'life0, 'async_trait>(
&'life0 self,
entry: InvalidatableEntry,
) -> Pin<Box<dyn Future<Output = CacheResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn register_entry<'life0, 'async_trait>(
&'life0 self,
entry: InvalidatableEntry,
) -> Pin<Box<dyn Future<Output = CacheResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Register a cache entry for invalidation tracking
Source§fn unregister_entry<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = CacheResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn unregister_entry<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = CacheResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Unregister a cache entry
Auto Trait Implementations§
impl<B> !RefUnwindSafe for MemoryInvalidationManager<B>
impl<B> !UnwindSafe for MemoryInvalidationManager<B>
impl<B> Freeze for MemoryInvalidationManager<B>
impl<B> Send for MemoryInvalidationManager<B>
impl<B> Sync for MemoryInvalidationManager<B>
impl<B> Unpin for MemoryInvalidationManager<B>
impl<B> UnsafeUnpin for MemoryInvalidationManager<B>where
Arc<B>: UnsafeUnpin,
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