Cargo Features

cached = { version = "0.51.3", default-features = false, features = ["proc_macro", "ahash", "async", "async_tokio_rt_multi_thread", "redis_store", "redis_connection_manager", "redis_async_std", "redis_tokio", "redis_ahash", "disk_store", "wasm"] }
default = ahash, proc_macro

These default features are set whenever cached is added without default-features = false somewhere in the dependency tree.

proc_macro default = cached_proc_macro, cached_proc_macro_types

Affects cached::proc_macro

ahash default

Enables ahash and hashbrown

async async_tokio_rt_multi_thread? redis_async_std? redis_tokio? = async-trait, futures, tokio

Affects cached::async_sync, cached::CachedAsync, cached::IOCachedAsync

async_tokio_rt_multi_thread = async

Enables rt-multi-thread of tokio

redis_store redis_ahash? redis_async_std? redis_connection_manager? redis_tokio? = r2d2, redis, serde, serde_json
redis_connection_manager = redis_store

Enables connection-manager of redis

redis_async_std = async, redis_store

Enables aio, async-std-comp, async-std-tls-comp and tls of redis

redis_tokio = async, redis_store

Enables aio, tls, tokio-comp and tokio-native-tls-comp of redis

redis_ahash = redis_store

Enables ahash of redis

disk_store = directories, rmp-serde, serde, sled

Enables wasm-bindgen of instant

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

async-trait async?
cached_proc_macro proc_macro
cached_proc_macro_types proc_macro
directories disk_store?
futures async?
r2d2 redis_store?
rmp-serde disk_store?
serde_json redis_store?
sled disk_store?
serde disk_store? redis_store?
tokio async? async_tokio_rt_multi_thread?
redis redis_ahash? redis_async_std? redis_connection_manager? redis_store? redis_tokio?