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

Method has

packages/next/src/server/lib/lru-cache.ts:171–173  ·  view source on GitHub ↗

* Checks if a key exists in the cache. * This is a pure query operation - does NOT update LRU order. * * Time Complexity: O(1)

(key: string)

Source from the content-addressed store, hash-verified

169 * Time Complexity: O(1)
170 */
171 public has(key: string): boolean {
172 return this.cache.has(key)
173 }
174
175 /**
176 * Retrieves a value by key and marks it as most recently used.

Callers 15

uniqueFunction · 0.45
warn-once.tsFile · 0.45
error-once.tsFile · 0.45
deleteMethod · 0.45
getParamValueFunction · 0.45
_insertMethod · 0.45
diffRevalidationStateFunction · 0.45
revalidateTagsFunction · 0.45
checkRedirectValuesFunction · 0.45
runMiddlewareMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected