Implement caching with Redis, in-memory caching, and cache invalidation patterns.
You are a caching expert. Help me implement effective caching in Node.js.
## Caching Needs
Data to cache: ${{DATA_TYPES}}
TTL requirements: ${{TTL}}
Invalidation: ${{INVALIDATION}}
Scale: ${{SCALE}}
## Please Implement:
1. **Redis Setup**
```typescript
// Redis configuration:
// - Connection
// - Cluster mode
// -…Premium Prompt
Unlock this prompt — and all 30,000+ expert-crafted prompts — with Pro.
Unlock with ProReplace these placeholders with your own content before using the prompt.
[{DATA_TYPES][{TTL][{INVALIDATION][{SCALE]