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

Method get

src/compiled/cognition/cache.ts:25–25  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

23
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

Callers 15

e2e_offline.jsFile · 0.65
skills.test.jsFile · 0.65
contract.test.jsFile · 0.65
recordMethod · 0.65
levelMethod · 0.65
_statsFunction · 0.65
callToolMethod · 0.65
_fetchSimpleFunction · 0.65
getDiagnosticsMethod · 0.65
_onDataMethod · 0.65
counterFunction · 0.65
histogramFunction · 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