AbstractProtectednormalizeNormalize and set default options
ProtectedbuildBuild a full cache key with prefix
Get cache statistics
Reset cache statistics
AbstractgetGet a value from cache
Cache key
Cached value or null if not found
AbstractsetSet a value in cache
Cache key
Value to cache
Optionalttl: number
Time to live in seconds (optional)
True if successful
AbstractdelDelete a key from cache
Cache key
True if key was deleted
AbstractexistsCheck if a key exists in cache
Cache key
True if key exists
AbstractinvalidateInvalidate all keys matching a pattern
Key pattern (supports glob patterns like user:*)
Number of keys invalidated
AbstractclearClear all cache entries (use with caution)
True if successful
AbstractmgetGet multiple keys at once
Array of cache keys
Array of values (null for missing keys)
AbstractmsetSet multiple keys at once
Array of {key, value, ttl?} objects
True if successful
AbstractdisconnectClose the cache backend connection
Promise that resolves when connection is closed
AbstractisCheck if cache backend is connected
True if connected
Abstract cache manager with L1/L2 support