Expand description
Storage backends for the cache layer.
The cache layer requires a CacheBackend implementation to persist
cached responses. This module ships with:
memory::InMemoryBackend— a fast, process-local cache backed bymoka.redis::RedisBackend(optional) — a distributed cache when theredis-backendcrate feature is enabled.memcached::MemcachedBackend(optional) — a distributed cache when thememcached-backendcrate feature is enabled.
Backends are responsible for answering cache lookups, storing entries, and enforcing per-entry stale windows.
Modules§
- memory
- multi_
tier - Multi-tier caching backend with automatic promotion.
Structs§
- Cache
Entry - Cached response payload captured by the cache layer.
- Cache
Read