(key: string)
| 93 | } |
| 94 | |
| 95 | export 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 | |
| 107 | export async function deleteCacheByTag(tag: string): Promise<boolean> { |
| 108 | try { |
nothing calls this directly
no outgoing calls
no test coverage detected