common_meta::cache::container

Type Alias Invalidator

source
pub type Invalidator<K, V, CacheToken> = Box<dyn for<'a> Fn(&'a Cache<K, V>, &'a CacheToken) -> BoxFuture<'a, Result<()>> + Send + Sync>;
Expand description

Invalidates cached values by [CacheToken]s.

Aliased Typeยง

struct Invalidator<K, V, CacheToken>(/* private fields */);