MCPcopy Create free account
hub / github.com/developersdigest/llm-answer-engine / clearSemanticCache

Function clearSemanticCache

app/tools/semanticCache.tsx:19–24  ·  view source on GitHub ↗
(userMessage: string)

Source from the content-addressed store, hash-verified

17}
18
19export async function clearSemanticCache(userMessage: string) {
20 "use server"
21 console.log('Clearing semantic cache for user message:', userMessage);
22 if (!config.useSemanticCache || !semanticCache) return;
23 await semanticCache.delete(userMessage);
24}
25
26export async function initializeSemanticCache() {
27 if (config.useSemanticCache) {

Callers 1

handleClearCacheFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected