Protected
buildProtected
createReturns a copy of the current cache statistics.
Current cache performance statistics
Protected
isProtected
Checks if a cache entry has expired based on its expiration timestamp.
The cache entry to check
True if the entry has expired
Protected
logProtected
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
In-memory cache implementation using a JavaScript Map. Fast and simple, but data is lost when the process exits.
Example