Re:Staying Out of TTL Hell
by steventhedev on Wednesday March 10, 2021 @06:27AM
(#26410150)
It's sad the difference between expiry and eviction isn't explored more fully. There are plenty of posts describing cache eviction strategies that barely touch on expiry issues, and a handful of posts about cache expiry that barely touch on eviction.
Regarding the decorators, there's a reason it's popular: it saves boilerplate. The good news is that it's python, so you can do something like this:
Regarding the decorators, there's a reason it's popular: it saves boilerplate. The good news is that it's python, so you can do something like this: