4 ms·
TTL certainly isn't the only or even best way to achieve cache invalidation - if the cache stores the result of time-intensive computations, then using a key th
by wizofaus 4y ago
TTL certainly isn't the only or even best way to achieve cache invalidation - if the cache stores the result of time-intensive computations, then using a key that is a hash of all the inputs is sufficient (though you still need to deal with cleaning out old entries to reclaim space).
From what I've observed often the "hard" problem with caching is knowing when it makes sense to use it at all - I've seen dramatic improvements in system behavior and reliability both from adding and removing caching.
- OJFord 4y agoYeah I stopped reading at that point, cache invalidation is not 'also known as TTL'.
- Beltiras 4y agoIt's a simplification but it isn't wrong. Mostly.
- vlovich123 4y agoWrite through cache doesn’t need invalidation. You can also invalidate through cache shoot downs. I’m sure there are many other techniques. Invalidation just means “what’s your strategy for removing things from the cache”. Using an expiry age is only one technique.
- OJFord 4y ago'News aggregation, also known as HN, [...]'