Skip to main content

TokioCache

Type Alias TokioCache 

Source
pub type TokioCache<K, V, KH = DefaultKeyBuilder<K>, C = DefaultCoster<V>, U = DefaultUpdateValidator<V>, CB = DefaultCacheCallback<V>, S = RandomState> = AsyncCache<K, V, TokioRuntime, KH, C, U, CB, S>;
Available on crate features async and tokio only.
Expand description

Convenience alias for an AsyncCache driven by tokio’s runtime.

Equivalent to AsyncCache<K, V, TokioRuntime, ...>. Available when the async and tokio features are both enabled.

Aliased Type§

pub struct TokioCache<K, V, KH = DefaultKeyBuilder<K>, C = DefaultCoster<V>, U = DefaultUpdateValidator<V>, CB = DefaultCacheCallback<V>, S = RandomState>(/* private fields */);