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 wheneverayun-cache
is added without
somewhere in the dependency tree.default-features = false - 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.