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

Method put

src/compiled/cognition/cache.ts:26–26  ·  view source on GitHub ↗
(key: string, prompt_name: string, model_id: string, value: unknown, ttl_ms: number, usage: { prompt_tokens?: number; completion_tokens?: number; cost_usd?: number })

Source from the content-addressed store, hash-verified

24export interface PromptCache {
25 get(key: string): Promise<CacheEntry | null>;
26 put(key: string, prompt_name: string, model_id: string, value: unknown, ttl_ms: number, usage: { prompt_tokens?: number; completion_tokens?: number; cost_usd?: number }): Promise<void>;
27}
28
29/**

Callers 4

putFunction · 0.65
putFunction · 0.65

Implementers 4

MemoryCachesrc/compiled/cognition/cache.ts
PgCachesrc/compiled/cognition/cache.ts
MemoryCachesrc/compiled/cognition/cache.js
PgCachesrc/compiled/cognition/cache.js

Calls

no outgoing calls

Tested by

no test coverage detected