Private Readonly DEFAULT_Private Readonly DEFAULT_Private accessPrivate cachePrivate statsPerformance statistics for cache monitoring
Get cached results if available and not expired. Updates access order for LRU tracking and increments hit counter.
The query identifier
The query parameters
Cache configuration settings
The cached entry if valid, null otherwise
Private getGenerate a deterministic cache key from query ID and parameters. The key is created by sorting parameter keys and creating a stable JSON representation.
The unique query identifier
The query parameters
A stable cache key string
Get cache statistics for monitoring and debugging.
Object containing cache performance metrics
Private removeCache query results with TTL and LRU eviction. Evicts least recently used entries when at capacity.
The query identifier
The query parameters
The query results to cache
Cache configuration settings
Private update
LRU (Least Recently Used) cache implementation for query results with TTL support. This cache provides efficient storage and retrieval of query results with automatic expiration based on time-to-live settings and size limits.