Clear specific cache keys
If you ask
“Delete all keys matching 'user:123:*' to clear that user's cache”
Then
Delete specific keys or key patterns when invalidation is needed.
Works in Claude, Codex, Cursor & any MCP agent
How this prompt works
-
Turn on the Redis connector in Claude, ChatGPT or Cursor — once.
-
Paste the prompt above. No code, no menus.
-
Delete specific keys or key patterns when invalidation is needed.
Level up: install the Redis skill
A prompt you paste once. A skill your agent keeps — playbooks and defaults it loads every session. Official pack.
npx skills add redis/agent-skills FAQ
How do I clear specific cache keys with Redis?
Add the Redis MCP connector once, then paste this prompt into Claude or ChatGPT: "Delete all keys matching 'user:123:*' to clear that user's cache". Your AI runs it in Redis.
Do I need to code?
No. You install the connector once (a short config or one click), then ask in plain words. The prompt on this page works as-is.
Which AI assistants work?
Claude (Desktop, Code), Cursor, ChatGPT and other MCP clients. The same prompt works across them.
Set up Redis in Claude
Copy-paste config, setup steps and more ready-to-run prompts on the connector page.
Open Redis setupMore prompts