MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / getKey

Function getKey

packages/redis/cachable.ts:229–230  ·  view source on GitHub ↗
(...args: Parameters<T>)

Source from the content-addressed store, hash-verified

227
228 const cachePrefix = `cachable:${name}`;
229 const getKey = (...args: Parameters<T>) =>
230 `${cachePrefix}:${stringify(args)}`.replaceAll(/\s/g, '');
231
232 const lruCache = new LRUCache<string, any>({
233 max: CACHEABLE_LRU_MAX,

Callers 2

cachedFnFunction · 0.70
cacheableFunction · 0.70

Calls 1

stringifyFunction · 0.70

Tested by

no test coverage detected