Files
mcp-code/lib/cache/snippets.ts
2025-03-31 12:26:50 +01:00

7 lines
250 B
TypeScript

import type { CodeSnippet } from "../types/index.js";
/**
* In-memory cache to store snippets by ID for efficient retrieval
* Used by list_snippets and fetch_snippet_by_id commands
*/
export const snippetsCache: Record<string, CodeSnippet> = {};