@salesforce/b2c-tooling-sdk / docs / getCachedEntry
Function: getCachedEntry()
getCachedEntry(
url,ttlMs):CachedEntry|undefined
Defined in: packages/b2c-tooling-sdk/src/docs/content-cache.ts:103
Returns the cached entry for url (with the tier that served it) from memory or a fresh-enough disk entry, or undefined on a miss. A disk hit repopulates the in-memory tier.
Parameters
url
string
The fetch URL used as the cache key
ttlMs
number = DEFAULT_CACHE_TTL_MS
Max age for a disk entry to count as a hit (default 7 days)
Returns
CachedEntry | undefined