Open
Description
We need the TTL cache or other way to clear cache for AppInfo storage to solve the permanent cache issue that locks out all users in the server with certain conditions (ref. #2279 #2562 #2422).
For TTL, Elk uses unstorage as a storage interface and has several storage drivers (memory, cloudflare, vercel, fs), but only a few drivers support TTL functionality.
- Some storage drivers (like Cloudflare) already support for its TTL feature: https://unstorage.unjs.io/drivers/cloudflare
- Memory driver has a new PR for TTL, which was opened just last week: feat: add
meta
andttl
tomemory
driver (new driver) unjs/unstorage#583
Maybe we need to implement our own TTL functionality with the package like @isaacs/ttlcache or need to wait for updates from upstream unstorage.