Design effective Redis caching strategies for your application
Design a Redis caching strategy for: Application Type: [WEB APP/API/E-COMMERCE/etc.] Current Pain Points: [SLOW QUERIES/HIGH DB LOAD/etc.] Data to Cache: 1. [DATA TYPE 1] - Access frequency: [HIGH/MEDIUM/LOW] 2. [DATA TYPE 2] - Access frequency: [HIGH/MEDIUM/LOW] 3. [DATA TYPE 3] - Access frequency: [HIGH/MEDIUM/LOW] Requirements: - Consistency needs: [STRONG/EVENTUAL] - Cache invalidation triggers: [LIST TRIGGERS] - Memory budget: [SIZE IF KNOWN] Please provide: 1. Cache key naming conventions 2. TTL strategies for each data type 3. Cache invalidation patterns 4. Data structure choices (string/hash/list/set/sorted set) 5. Code examples for cache-aside pattern 6. Monitoring and metrics recommendations
Or press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[DATA TYPE 1][DATA TYPE 2][DATA TYPE 3][LIST TRIGGERS][SIZE IF KNOWN]