MCPcopy
hub / github.com/dataease/dataease / processKey

Function processKey

core/core-frontend/src/hooks/web/useCache.ts:20–22  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

18 }
19
20 const processKey = (key: string): string => {
21 return shouldAddPrefix(key) ? `${prefix}${key}` : key
22 }
23
24 const methodsNeedKeyPrefix = new Set(['get', 'delete', 'touch', 'add', 'replace'])
25

Callers 1

getFunction · 0.85

Calls 1

shouldAddPrefixFunction · 0.85

Tested by

no test coverage detected