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

Function setInSemanticCache

app/tools/semanticCache.tsx:13–17  ·  view source on GitHub ↗
(userMessage: string, data: any)

Source from the content-addressed store, hash-verified

11
12
13export async function setInSemanticCache(userMessage: string, data: any) {
14 if (config.useSemanticCache && semanticCache && data.llmResponse.length > 0) {
15 await semanticCache.set(userMessage, JSON.stringify(data));
16 }
17}
18
19export async function clearSemanticCache(userMessage: string) {
20 "use server"

Callers 1

myActionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected