MCPcopy
hub / github.com/Doorman11991/smallcode / put

Function put

src/compiled/cognition/cache.ts:146–149  ·  view source on GitHub ↗
(key, prompt_name, model_id, value, ttl_ms, usage)

Source from the content-addressed store, hash-verified

144 return e;
145 },
146 async put(key, prompt_name, model_id, value, ttl_ms, usage): Promise<void> {
147 await __backend.put(key, prompt_name, model_id, value, ttl_ms, usage);
148 counter("cognition.cache_put", { prompt: prompt_name });
149 },
150};
151
152/** For tests: clear the in-memory cache. No-op against PG mode. */

Callers

nothing calls this directly

Calls 2

counterFunction · 0.90
putMethod · 0.65

Tested by

no test coverage detected