Interface: CacheEntry<T>
Defined in: src/utils/cache.ts:86
Internal
Internal structure representing a cached entry and its metadata.
Remarksโ
This type is internal to the module and captures timestamps required for TTL checks and LRU eviction. It is intentionally not exported.
Type Parametersโ
Tโ
T
Propertiesโ
lastAccessedโ
lastAccessed:
number
Defined in: src/utils/cache.ts:88
Internal
Last-accessed epoch in milliseconds used for LRU selection.
timestampโ
timestamp:
number
Defined in: src/utils/cache.ts:91
Internal
Creation epoch in milliseconds used to evaluate TTL expiration.
ttlโ
ttl:
number|undefined
Defined in: src/utils/cache.ts:94
Internal
Optional per-entry TTL (milliseconds) that overrides the cache default.
valueโ
value:
T
Defined in: src/utils/cache.ts:97
Internal
Stored value for the cache entry.