Abstract
Protected
buildAbstract
clearProtected
createAbstract
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
setAbstract
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