Share the joy
- When there is no eviction mechanism, we can use ttl to invalidate. But this is based on that cache might have stale data.
- TTL doesn’t lead 100% cache correctness. If we want to guarantee cache correctness, we need evection mechanism, write-through etc strategies.
- In theory, TTL is just a way of data replacement. Others are LRU, LFU.