Implement a query caching layer to reduce database load
Implement query caching for: Database: [PostgreSQL/MySQL/MongoDB] Cache Store: [Redis/Memcached] Framework: [Express/FastAPI/Django/etc.] ORM: [Prisma/TypeORM/SQLAlchemy/etc.] Queries to Cache: [DESCRIBE EXPENSIVE/FREQUENT QUERIES] Requirements: - Cache invalidation triggers: [LIST] - TTL strategy: [FIXED/DYNAMIC] - Cache-aside vs. read-through: [PREFERENCE] Please provide: 1. Caching layer architecture 2. Cache key generation strategy 3. Implementation code with ORM integration 4. Invalidation logic implementation 5. Cache warming strategies 6. Monitoring cache hit rates
Or press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[LIST][PREFERENCE]