Skip to content

Commit

Permalink
feat: add batchDel for cache proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
Atinux committed Apr 17, 2024
1 parent 9680cba commit e85719f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/runtime/server/utils/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ export function proxyHubCache(projectUrl: string, secretKey?: string) {
method: 'DELETE'
})
return
},
async batchDel(keys: string[]) {
await cacheAPI('/batch-delete', {
method: 'POST',
body: { keys }
})
return
}
}

Expand Down

0 comments on commit e85719f

Please sign in to comment.