Type Alias CacheEntry

An entry in the cache for one specific cacheKey

type CacheEntry = {
    accessedPaths: Set<string>;
    hitCount: number;
    lastHit: Date | null;
    lastPulled: number;
    value: Promise<unknown>;
}
Index

Properties

accessedPaths: Set<string>

the url path of the cache hit. Useful to determine how many different qmfes are accessing the cache key

hitCount: number

number of times the cache has been hit by a client

lastHit: Date | null

last time the cache was accessed and prevented an api call

lastPulled: number
value: Promise<unknown>