NuxtN
Nuxt16mo ago
dmarr

Is there a way to invalidate cache with wildcards?

I would like to have a route that does something like:
await useStorage('cache').removeItem(`nitro:functions:getData:*:*.json`);

Is there any way I can use wildcards? Since my cache keys are dynamic, I'm not sure how I'd invalidate them.
Thanks!
Was this page helpful?