Skip to main content

Crate philiprehberger_cache_kit

Crate philiprehberger_cache_kit 

Source
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.
CacheStats
Snapshot of cache performance counters.