Problem Statement
What is the most common starting strategy for cache invalidation in web apps?
Explanation
TTL bounds staleness and is simple to operate. As the system matures, add targeted invalidation when specific writes must reflect quickly. Full flushes are blunt and risky during peak traffic.
Code Solution
SolutionRead Only
SET key value EX 300 // 5 minutes
