toolcacheAI Coding Prompts › Caching Strategy Designer

Caching Strategy Designer

Design a caching strategy for [APPLICATION TYPE].

Scale: [REQUESTS/SEC] | Database: [TYPE] | Current pain: [SLOW QUERIES / HIGH LOAD / COST]
Provide:
1. **Cache Layers**: Browser → CDN → Application → Database — what goes where
2. **Cache-Aside Pattern**: Implementation for your most common queries
3. **Cache Invalidation**: Strategy for each data type (TTL, event-driven, versioned)
4. **Redis Setup**: Configuration, data structures to use, memory management
5. **HTTP Caching Headers**: Cache-Control, ETag, Last-Modified for each endpoint type
6. **CDN Configuration**: What to cache at the edge and for how long
7. **Database Query Cache**: Connection pooling and prepared statement caching
8. **Warming Strategy**: How to pre-populate cache on deploy
9. **Monitoring**: Cache hit rate, miss rate, eviction rate dashboards
10. **Code Implementation**: Full caching middleware with cache-aside pattern
🔒

Unlock this prompt

You have 5 free unlocks remaining

or
Get unlimited access from £2.99 →

How to use this prompt

Copy the prompt above and paste it into ChatGPT, Claude, Gemini, or any AI assistant. Replace the bracketed placeholders with your specific details.

Leave a Review

Tried this prompt? Let us know how it worked — your reviews help other users find the best prompts.

Get Unlimited Access →Browse All 2,400 Prompts