MCPcopy Create free account
hub / github.com/KartikLabhshetwar/foliox / deleteCache

Function deleteCache

lib/utils/cache.ts:95–105  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

93}
94
95export async function deleteCache(key: string): Promise<boolean> {
96 try {
97 await prisma.cache.delete({
98 where: { key },
99 });
100 return true;
101 } catch (error) {
102 console.error(`Failed to delete cache for key ${key}:`, error);
103 return false;
104 }
105}
106
107export async function deleteCacheByTag(tag: string): Promise<boolean> {
108 try {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected