← Back to Skills
🔥

Cache Warmup

Identify cold cache keys, pre-populate them from the database, and verify hits

Data 5 steps 4 tools 3 servers

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

1

Check Redis for a list of expected high-traffic keys to identify misses

🔑 Get Key
2

Query the source database for the data behind each cold cache key

📊 Run SQL Query
3

Populate each cold key in Redis with the fetched data

🔒 Set Key
4

Read back each warmed key to verify the cache was populated correctly

🔑 Get Key
5

Notify the team that cache warmup is complete with a summary

📨 Send Message

Tags

cacheredisperformancewarmup