▲ | motorest 10 hours ago | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
> Yeah, the article was like "I always need a DB anyway" but then sets up an extra cronjob to expire keys, plus more code. You do not need cron jobs to do cache. Sometimes you don't even need a TTL. All you need is a way to save data in a way that is easy and cheaper to retrieve. I feel these comments just misinterpret what a cache is by confusing it with what some specific implementation does. Perhaps that's why we see expensive and convoluted strategies using Redis and the like when they are absolutely not needed at all. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | maxbond 10 hours ago | parent [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
If we don't use a TTL, aren't we going to have to either accept that our cache will grow without bounds or take an even more sophisticated approach (like tracking access times instead of creation times)? Is there something simpler I'm not seeing? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|