MCPcopy
hub / github.com/vercel/next.js / set

Method set

packages/next/src/server/lib/cache-handlers/types.ts:57–57  ·  view source on GitHub ↗

* Store a cache entry for the given cache key. When this is called, the entry * may still be pending, i.e. its value stream may still be written to. So it * needs to be awaited first. If a `get` for the same cache key is called, * before the pending entry is complete, the cache handler must

(cacheKey: string, pendingEntry: Promise<CacheEntry>)

Source from the content-addressed store, hash-verified

55 * undefined.
56 */
57 set(cacheKey: string, pendingEntry: Promise<CacheEntry>): Promise<void>
58
59 /**
60 * This function may be called periodically, but always before starting a new

Callers 15

runTestOnceFunction · 0.65
mainFunction · 0.65
buildDocTreeFunction · 0.65
groupByDirectoryFunction · 0.65
imgixLoaderFunction · 0.65
imgixLoaderFunction · 0.65
renameAsyncPropIfExistedFunction · 0.65
GoogleTagManagerFunction · 0.65
processRoutesFunction · 0.65
applyOnMatchHeadersFunction · 0.65

Calls

no outgoing calls

Tested by 6

collectFileFunction · 0.52
reorderLinesByBadgeFunction · 0.52
beforePageLoadFunction · 0.52
beforePageLoadFunction · 0.52
getProxyTargetFunction · 0.52