Expand description
Generic LRU cache with TTL, tags, and async support.
§Example
use philiprehberger_cache_kit::Cache;
let cache: Cache<String, String> = Cache::new(100, None);
cache.set("key".into(), "value".into());
assert_eq!(cache.get(&"key".into()), Some("value".into()));Structs§
- Cache
- A thread-safe in-memory LRU cache with TTL and tag-based invalidation.
- Cache
Stats - Snapshot of cache performance counters.