nuxt-hub / core

Build full-stack applications with Nuxt on CloudFlare, with zero configuration.
https://hub.nuxt.com
Apache License 2.0
993 stars 57 forks source link

[Cache] Support ttl/expire #306

Closed oritwoen closed 1 month ago

oritwoen commented 1 month ago

Is your feature request related to a problem? Please describe. Currently, the use of cache saves data on Cloudflare kv. From my observations, this data is not periodically deleted and in large projects the limits are used very quickly.

Describe the solution you'd like It would be great if the cache and its maxAge were synchronized with the recently added ttl. In this way, old cache entries from kv would be deleted automatically.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

atinux commented 1 month ago

It's planned @oritwoen

I need to create a custom provider especially for caching, will keep you updated!