redis-inspect

Inspect Redis cache keys, TTLs, types, and values with JSON output.

7.2k|732|Updated Oct 11, 2022
One-click install
npx skills add https://github.com/civitai/civitai --skill redis-inspect
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: redis-inspect
Source: https://github.com/civitai/civitai/tree/main/.claude/skills/redis-inspect
Command: npx skills add https://github.com/civitai/civitai --skill redis-inspect

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires redis, and includes scripts (resource) components.

What problem does it solve?

Inspect Redis cache state to debug and monitor key/value data across both main and system caches, reducing mystery and downtime.

Core Features & Use Cases

  • Inspect cache keys, values, and TTLs across main and system caches for debugging and performance tuning.
  • Retrieve specific keys or hashes, check existence, and view server info to understand cache behavior.
  • Delete keys (with explicit --writable flag) when necessary, supported by safety prompts in the tool.

Quick Start

Run node .claude/skills/redis-inspect/query.mjs get <key> to retrieve a value from the selected Redis cache.

Frequently Asked Questions about redis-inspect

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I inspect Redis cache keys and TTLs for debugging?

You can inspect Redis cache keys, values, and TTLs by running the query script with commands like get, keys, ttl, and info. It supports interactive exploration across both main and system caches with JSON output and limit controls.

Can I delete a Redis key from the command line during cache diagnostics?

Yes, you can delete Redis keys using the del command, but you must explicitly enable the --writable flag. This safety mechanism prevents accidental cache modifications during standard read-only diagnostic operations.

What is the best way to check Redis hash values when debugging application state?

To check Redis hash values during debugging, use the hgetall or hget commands provided by the inspection script. This allows you to retrieve specific fields or entire hashes from your cache to verify application state.

Does this Redis inspection tool support querying the system cache separately from the main cache?

Yes, the tool supports querying the system cache separately from the main cache. You can use the sys flag to specifically target the system cache and isolate its state during your debugging session.

Do I need a specific Redis dependency to run cache diagnostics with this script?

Yes, you need the redis dependency installed in your environment to run the cache diagnostics script. The tool relies on this connection layer to execute commands and retrieve JSON output from your cache.