Expand description
Cache adapters (memory, Redis) Cache adapters
Three implementations available for different use-cases:
| Adapter | Eviction | TTL | Notes |
|---|---|---|---|
MemoryCache | None | No | Dev/test |
DashMapCache | None | Yes | High-concurrency + background cleanup |
BoundedLruCache | LRU | Yes | Capacity-bounded; LazyLock singleton |
Structs§
- Bounded
LruCache - Capacity-bounded LRU cache with optional TTL per entry.
- Dash
MapCache - High-concurrency in-memory cache using
DashMapwith TTL expiration. - Memory
Cache - In-memory cache adapter for testing and development
- Redis
Cache - Redis cache adapter
Functions§
- global_
cache - Process-wide default cache singleton backed by
DashMapCache.