cache/cache_manager library
In-memory cache with TTL (time-to-live) support.
This is intentionally kept simple and in-memory. For persistent storage, implement CacheStore and inject it into CacheManager.
Classes
-
CacheEntry<
T> - Wrapper around a cached value that tracks creation time for TTL checks.
- CacheManager
- Manages cached data with TTL support.
- CacheStore
- Abstraction over the underlying storage mechanism.
- InMemoryCacheStore
- Simple in-memory implementation of CacheStore.