MCPcopy Index your code
hub / github.com/plotly/dash / get

Function get

components/dash-table/src/core/cache/memoizer.ts:8–17  ·  view source on GitHub ↗
(...key: TKey)

Source from the content-addressed store, hash-verified

6 const cache = new Map<CacheKeyFragment, any>();
7
8 function get(...key: TKey): TEntryFn {
9 const lastKey = key.slice(-1)[0];
10
11 const nestedCache = getCache(cache, ...key);
12
13 return (
14 nestedCache.get(lastKey) ||
15 nestedCache.set(lastKey, memoizeOne(fn)).get(lastKey)
16 );
17 }
18
19 return {get};
20 };

Callers

nothing calls this directly

Calls 4

memoizeOneFunction · 0.90
getCacheFunction · 0.85
getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected