Module backend

Module backend 

Source
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 by moka.
  • redis::RedisBackend (optional) — a distributed cache when the redis-backend crate feature is enabled.
  • memcached::MemcachedBackend (optional) — a distributed cache when the memcached-backend crate 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§

CacheEntry
Cached response payload captured by the cache layer.
CacheRead

Traits§

CacheBackend