API Cache Manager Skill for Redis Invalidation
Design a local cache key and TTL, then verify that updating a source item invalidates its cached response.
中文Install in Claude Code
Use your local API, Redis, a test client, and an isolated key namespace for public catalog fixtures.
- Get the complete `plugins/api-development/api-cache-manager/skills/managing-api-cache` directory from the pinned GitHub commit.
- Copy it into the target project's `.claude/skills/`. Check `.claude/skills/managing-api-cache/SKILL.md`, start Claude Code at the project root, and call `/managing-api-cache`.
Example task
Read /products/mug-01 twice. Confirm the second response comes from Redis. Change the fixture title, invalidate its key, and read again.What to check
The first request misses, the second hits, and the post-update read refreshes with the new title. Unrelated keys remain.
Original SKILL.md on GitHub · Updated
Frequently asked question
Is a short TTL sufficient after a write?
A stale value can persist until expiry. Invalidate or update the affected key on writes when readers need immediate freshness.