Problem Statement
Which invalidation strategy is the most common first step?
Explanation
TTL is simple and bounds staleness. Start there to get wins with low risk.
Add fine-grained invalidation events when correctness needs are stricter.
Code Solution
SolutionRead Only
SET key value EX 300 // 5 min TTL
Practice Sets
This question appears in the following practice sets:
