common_meta::cache::container

Type Alias Initializer

source
pub type Initializer<K, V> = Arc<dyn Fn(&K) -> BoxFuture<'_, Result<Option<V>>> + Send + Sync>;
Expand description

Initializes value (i.e., fetches from remote).

Aliased Typeยง

struct Initializer<K, V> { /* private fields */ }