Function
put
(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
Tested by
no test coverage detected