Module cache

Module cache 

Source
Expand description

Cache adapters (memory, Redis) Cache adapters

Three implementations available for different use-cases:

AdapterEvictionTTLNotes
MemoryCacheNoneNoDev/test
DashMapCacheNoneYesHigh-concurrency + background cleanup
BoundedLruCacheLRUYesCapacity-bounded; LazyLock singleton

Structs§

BoundedLruCache
Capacity-bounded LRU cache with optional TTL per entry.
DashMapCache
High-concurrency in-memory cache using DashMap with TTL expiration.
MemoryCache
In-memory cache adapter for testing and development
RedisCache
Redis cache adapter

Functions§

global_cache
Process-wide default cache singleton backed by DashMapCache.