MCPcopy
hub / github.com/msgbyte/tianji / buildKey

Function buildKey

src/server/cache/index.ts:58–59  ·  view source on GitHub ↗
(...args: Args)

Source from the content-addressed store, hash-verified

56 const memCache = new Map<string, MemCacheEntry<T>>();
57
58 const buildKey = (...args: Args) =>
59 [id, ...args.map((a) => JSON.stringify(a))].join('|');
60
61 const get = async (...args: Args): Promise<T> => {
62 const key = buildKey(...args);

Callers 3

getFunction · 0.85
updateFunction · 0.85
delFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected