Cache Warmup
Identify cold cache keys, pre-populate them from the database, and verify hits
Example Prompt
Warm up the cache for our top 50 product pages by pre-loading data from the database into Redis
About
Proactively warms up the Redis cache by identifying frequently accessed keys that are missing or expired. Queries the source database for the corresponding data and populates each cache key. Verifies that all warmed keys return correct values with a read-back check.
Workflow Steps
Check Redis for a list of expected high-traffic keys to identify misses
🔑 Get KeyQuery the source database for the data behind each cold cache key
📊 Run SQL QueryPopulate each cold key in Redis with the fetched data
🔒 Set KeyRead back each warmed key to verify the cache was populated correctly
🔑 Get KeyNotify the team that cache warmup is complete with a summary
📨 Send Message