pub type CacheLoader = Box<dyn FnOnce() -> BoxFuture<'static, Result<CachedEntry, Error>> + Send + 'static>;Expand description
A FnOnce returning a future that produces a CachedEntry on cache miss.
Used by DbCache::fetch_block and friends to load an entry into the cache. The closure
is invoked at most once per concurrent fetch group; subsequent callers for the same key
receive the same result.
Aliased Typeยง
pub struct CacheLoader(/* private fields */);