- Home
- Skills
- Data & Databases
- Redis Cache Architect
Works with the AI tools you already use
Redis Cache Architect
A cache without an invalidation story isn't an optimization — it's a stale-data generator with good latency numbers.
$8.99
Redis Cache Architect
Example session with this skill installed
Our product listing API (Node + Postgres, about 50,000 products) takes 700-900 ms per category page. Prices and stock update every few minutes from the ERP, descriptions change rarely. Design a Redis caching layer.
- Read your context and instructions
- Compiled the redis cache architect
Redis design for category listings: cache product data and listing IDs separately, invalidate on ERP updates, jitter TTLs and guard against stampedes.
Cacheability assessment
| Data | Change rate | Cache? | Key | TTL |
|---|---|---|---|---|
| Product description, images | Rare | Yes | prod:{id}:static | 24 h |
| Price and stock | Every few minutes | Yes, short | prod:{id}:live | 120 s |
| Category page ID list | On product add/remove | Yes | cat:{id}:p{page}:{sort} | 10 min |
| Cart, checkout totals | Per request | No | n/a | n/a |
Invalidation
- ERP sync job deletes
prod:{id}:livefor every changed product after the DB commit. - Product create, delete or recategorize deletes
cat:{id}:*via a set of page keys per category (noKEYSscans). - Static data uses TTL plus explicit delete on admin edit.
TTL jitter
const ttl = base + Math.floor(Math.random() * base * 0.1);
Spreads expiry so a whole category does not expire together.
Stampede protection
const lock = await redis.set(`lock:${key}`, 1, 'NX', 'PX', 3000);
if (!lock) return staleOrWait(key);
- One request rebuilds; others serve the stale value or wait briefly.
- Build pages with
MGETon product keys to avoid N round trips.
Next steps
- Measure cache hit rate and rebuild time per key type after rollout.
- Decide the eviction policy (
allkeys-lrusuits this pattern).
Connects securely to your tools. The creator never sees your data.
What you get
About this skill
A cache without an invalidation story isn't an optimization — it's a stale-data generator with good latency numbers. This skill designs your Redis caching layer properly: what to cache and what not to (some things invalidate so frequently that caching costs more than it saves), key namespace strategy that doesn't collide across services, TTL choices calibrated to your data's actual staleness tolerance, invalidation patterns for write-through vs. cache-aside vs. read-through, and memory sizing so your cache doesn't evict the hot data to keep the cold. It also covers the failure modes — what happens when Redis goes down, and whether your app degrades gracefully or fails completely. Give it your hottest queries, your data update frequency, and your current pain points; it returns a caching architecture that actually reduces load instead of shifting complexity.
How to install
Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.
- 1
Download the ZIP
Free skills download straight away. Paid skills unlock right after purchase.
- 2
Unzip into your skills folder
Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.
- 3
Ask your agent to use it
Restart the agent if it was already running. It picks the skill up automatically - no config needed.
Skills folder by agent
Click the path to copy it. Create the folder if it does not exist yet.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
30-day refund
Not a fit? Get your money back
Trust & safety
Security scanned
Verified clean 3 months ago
- Passed all security checks, Safe to install