Interface: CacheEntry<T>
Defined in: src/utils/cache.ts:77
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:79
Last-accessed epoch in milliseconds used for LRU selection.
timestampโ
timestamp:
number
Defined in: src/utils/cache.ts:82
Creation epoch in milliseconds used to evaluate TTL expiration.
ttlโ
ttl:
undefined
|number
Defined in: src/utils/cache.ts:85
Optional per-entry TTL (milliseconds) that overrides the cache default.
valueโ
value:
T
Defined in: src/utils/cache.ts:88
Stored value for the cache entry.