Abstract
Protected
buildAbstract
clearProtected
createProtected
Creates a cache entry with metadata and expiration information.
The value to cache
Optional
options: common.apis.cache.CacheSetOptionsOptional caching configuration
A complete cache entry object
Abstract
deleteAbstract
getReturns a copy of the current cache statistics.
Current cache performance statistics
Abstract
hasProtected
isProtected
Checks if a cache entry has expired based on its expiration timestamp.
The cache entry to check
True if the entry has expired
Abstract
keysProtected
logAbstract
setStores a value in the cache with optional configuration. Must be implemented by concrete cache classes.
The cache key to store under
The value to cache
Optional
options: common.apis.cache.CacheSetOptionsOptional caching configuration (TTL, metadata)
Abstract
sizeProtected
updateProtected
Updates cache statistics for performance monitoring.
The type of operation that occurred
Optional
context: { Additional context for hit/miss logging
Optional
fullOptional
key?: stringOptional
reason?: string
Abstract base class providing common functionality for cache implementations. Handles statistics tracking, key building, entry creation, and logging.
Example