Current number of cached items (may include expired items).
Manually trigger cleanup of expired entries.
Remove all cached items.
Sync iterator over all cache entries. Kept for memoize compatibility.
Gets eviction statistics.
Object with eviction count
Check if key exists (may still be expired - adapter handles expiration).
Sync iterator over all cache keys. Kept for memoize compatibility.
Map-based cache adapter with LRU eviction and background cleanup.
Provides cache operations using a Map with:
All methods are async to conform to CacheAdapter interface, but operations are synchronous internally for performance.
Example