▲ | motorest 10 hours ago | |
> Having the ability to set a TTL on the cache key is a critical feature of a cache, not something that can be tacked on later. What exactly is the challenge you're seeing? In the very least, you can save an expiry timestamp as part of the db entry. Your typical caching strategy already involves revalidating cache before it expires, and it's not as if returning stale while revalidating is something completely unheard of. |