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

Function put

src/compiled/cognition/cache.js:120–123  ·  view source on GitHub ↗
(key, prompt_name, model_id, value, ttl_ms, usage)

Source from the content-addressed store, hash-verified

118 return e;
119 },
120 async put(key, prompt_name, model_id, value, ttl_ms, usage) {
121 await __backend.put(key, prompt_name, model_id, value, ttl_ms, usage);
122 (0, metrics_1.counter)("cognition.cache_put", { prompt: prompt_name });
123 },
124};
125/** For tests: clear the in-memory cache. No-op against PG mode. */
126function __resetMemoryCache() {

Callers

nothing calls this directly

Calls 1

putMethod · 0.65

Tested by

no test coverage detected