Caching Patterns
A well-placed cache is the cheapest way to buy speed. A misplaced cache is the most expensive way to buy bugs.
Cache Strategies
| Strategy | How It Works | When to Use |
|---|---|---|
| Cache-Aside (Lazy) | App checks cache → miss → reads DB → writes to cache | Default choice — general purpose |
| Read-Through | Cache fetches from DB on miss automatically | ORM-integrated caching, CDN origin fetch |
| Write-Through | Writes go |
[Description truncada. Veja o README completo no GitHub.]