Caching for Cash
summary
Covers concrete caching rules and code patterns including how cache keys must account for all inputs and how missing inputs produce stale results with real examples like computing Pi and addDays. Explains revalidation strategies: proactive updates via a GitHub action, cache control headers and stale-while-revalidate for zero-wait UX, plus soft purge to avoid stampedes. Addresses cache size limits with LRU, disk/sqlite and redis options, cache warming, entry validation, and request deduplication.
AI-written summary · about
chapters (14)
- 0:00Introduction to caching
- 1:08Why caching matters
- 4:39What is caching
- 6:45Cache keys explained
- 8:28Finding cache bugs
- 9:58Challenges with cache keys
- 13:51Cache revalidation strategies
- 15:36Stale-while-revalidate model
- 20:13Cache size problems
- 21:18Solutions for cache size
- 23:28Cache warming techniques
- 24:10Cache entry validation
- 24:51Request duplication issues
- 25:55Introducing Cachify
related talks
42mCaching for Cash
47mWeb Caching: Strategies, Pitfalls and Modern Tools
43mCache Me Outside - Caching Methodologies & Architectures
34mCache = Cash! 2.0
25mCaching strategies on https://dev.to
46mA Hitchhiker’s Guide to Caching Patterns
26mCache Strategies with Best Practices
44mCatch Me If You Cache: Cache Patterns and Pitfalls in Production
