MCPcopy Create free account
hub / github.com/denoland/std / has

Method has

cache/memoize.ts:13–13  ·  view source on GitHub ↗

Checks whether a value for the given key exists in the cache.

(key: K)

Source from the content-addressed store, hash-verified

11export interface MemoizationCache<K, V> {
12 /** Checks whether a value for the given key exists in the cache. */
13 has(key: K): boolean;
14 /** Returns the cached value associated with the given key, if present. */
15 get(key: K): V | undefined;
16 /** Stores a value in the cache under the given key. */

Callers 15

getMethod · 0.65
peekMethod · 0.65
lru_cache_test.tsFile · 0.65
assertEntriesFunction · 0.65
ttl_cache_test.tsFile · 0.65
hasMethod · 0.65
getMethod · 0.65
#tokenizeMethod · 0.65
decodeMapFunction · 0.65
isSupportedAlgorithmFunction · 0.65
resolveDerivedComponentFunction · 0.65

Implementers 1

LruCachecache/lru_cache.ts

Calls

no outgoing calls

Tested by

no test coverage detected