Cargo Features

[dependencies]
ayun-cache = { version = "0.20.2", default-features = false, features = ["cache-memory", "cache-redis"] }
default = cache-memory

The cache-memory feature is set by default whenever ayun-cache is added without default-features = false somewhere in the dependency tree.

cache-memory default

Enables cache-memory of ayun-config and future of moka

moka:

Enable this feature to use moka::future::Cache.

Affects drivers::mem

cache-redis

Enables cache-redis of ayun-config and ayun-redis and bb8-redis

ayun-redis:

optional

Affects drivers::redis

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.

moka cache-memory