Skip to content

Commit e85719f

Browse files
committed
feat: add batchDel for cache proxy
1 parent 9680cba commit e85719f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/runtime/server/utils/cache.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ export function proxyHubCache(projectUrl: string, secretKey?: string) {
4040
method: 'DELETE'
4141
})
4242
return
43+
},
44+
async batchDel(keys: string[]) {
45+
await cacheAPI('/batch-delete', {
46+
method: 'POST',
47+
body: { keys }
48+
})
49+
return
4350
}
4451
}
4552

0 commit comments

Comments
 (0)