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

Method get

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

Returns the cached value associated with the given key, if present.

(key: K)

Source from the content-addressed store, hash-verified

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. */
17 set(key: K, val: V): unknown;
18 /** Removes the value associated with the given key from the cache. */

Callers 15

setMethod · 0.65
getMethod · 0.65
peekMethod · 0.65
deleteMethod · 0.65
#resetTtlMethod · 0.65
memoizeFunction · 0.65
_serializeArgListFunction · 0.65
lru_cache_test.tsFile · 0.65
assertEntriesFunction · 0.65
ttl_cache_test.tsFile · 0.65
#pruneToMaxSizeMethod · 0.65
getMethod · 0.65

Implementers 1

LruCachecache/lru_cache.ts

Calls

no outgoing calls

Tested by 2

itFunction · 0.52
testFunction · 0.52