鱼皮AI导航
鱼皮AI导航
  • 主页
  • 社区
  • AI工具
  • AI知识库
  • AI提示词
  • MCP
  • Skills
  • AI学习资源
  • AI资讯
  • GitHub开源
登录/注册

redis-inspect

提供对 Redis 缓存的深度诊断能力,支持主缓存与系统缓存双模式查询,可检索键值、类型、过期时间、哈希结构、集合成员、列表内容等,并能获取服务器状态信息,适用于缓存问题排查、数据验证及运行时状态监控。

数据库
访问 GitHub
文档Skills.MD
name
redis-inspect
description
Inspect Redis cache keys, values, and TTLs for debugging. Supports both main cache and system cache. Use for debugging cache issues, checking cached values, and monitoring cache state. Read-only by default.

Redis Cache Inspector

Use this skill to inspect Redis cache state for debugging purposes.

Running Commands

▼
bash
复制代码
node .claude/skills/redis-inspect/query.mjs <command> [options]

Commands

CommandDescription
get <key>Get a string value
keys <pattern>Find keys matching pattern (use * as wildcard)
ttl <key>Get TTL (-1 = no expiry, -2 = not found)
type <key>Get the type of a key
exists <key>Check if key exists
hgetall <key>Get all fields from a hash
hget <key> <field>Get a specific hash field
scard <key>Get set cardinality (count)
smembers <key>Get all set members
llen <key>Get list length
lrange <key>Get list elements
del <key>Delete a key (requires --writable)
infoGet Redis server info

Options

FlagDescription
--sysUse system cache instead of main cache
--writableAllow write operations (required for del)
--jsonOutput raw JSON
--limit <n>Limit results (default: 100)

Cache Types

The project has two Redis instances:

CacheFlagEnv VariablePurpose
Main Cache(default)REDIS_URLRegular cache, cluster mode, can be lost
System Cache--sysREDIS_SYS_URLPersistent system values, single node

Main Cache (default)

Regular application cache. Data here can be regenerated if lost.

  • User sessions
  • Cached queries
  • Temporary data
  • Rate limiting counters

System Cache (--sys)

Persistent system configuration and state. More critical data.

  • Feature flags
  • Generation limits/status
  • System permissions
  • Job state
  • Event configurations

Examples

▼
bash
复制代码
# Find keys matching a pattern node .claude/skills/redis-inspect/query.mjs keys "user:*" --limit 20 node .claude/skills/redis-inspect/query.mjs keys "packed:caches:*" # Get a value node .claude/skills/redis-inspect/query.mjs get "session:data2:123456" # Check system cache values node .claude/skills/redis-inspect/query.mjs --sys get "system:features" node .claude/skills/redis-inspect/query.mjs --sys hgetall "system:entity-moderation" # Check TTL node .claude/skills/redis-inspect/query.mjs ttl "generation:count:123" # Inspect a hash node .claude/skills/redis-inspect/query.mjs hgetall "packed:caches:cosmetics" node .claude/skills/redis-inspect/query.mjs hget "system:entity-moderation" "entities" # Check set size node .claude/skills/redis-inspect/query.mjs scard "queues:seen-images" # Get server info node .claude/skills/redis-inspect/query.mjs info node .claude/skills/redis-inspect/query.mjs --sys info

Common Key Patterns

Main Cache

PatternDescription
user:*User data
session:*Session data
packed:caches:*Packed/compressed cached data
packed:user:*Packed user cache
generation:*Generation-related cache
tag:*Tag cache

System Cache

PatternDescription
system:*System configuration
generation:*Generation limits/status
download:limitsDownload limits
job:*Job state
event:*Event configurations
new-order:*New Order game state
daily-challenge:*Daily challenge config

Debugging Tips

▼
bash
复制代码
# Check if a user's session exists node .claude/skills/redis-inspect/query.mjs keys "session:data2:*" --limit 10 # Check generation status node .claude/skills/redis-inspect/query.mjs --sys get "generation:status" # Check feature flags node .claude/skills/redis-inspect/query.mjs --sys hgetall "system:features" # Check cache memory usage node .claude/skills/redis-inspect/query.mjs info

Write Operations

Write operations require --writable flag and user approval:

▼
bash
复制代码
# Delete a specific key (requires approval) node .claude/skills/redis-inspect/query.mjs del "some:key" --writable

IMPORTANT: Always ask the user for permission before using --writable.

数据库

快捷安装

复制到终端去安装 Skill

npxskillsaddcivitai/civitai--skill"redis-inspect"
站长:程序员鱼皮 老鱼简历 商务合作 增值电信业务经营许可证
2026 鱼皮AI导航 | 沪ICP备19026706号-6
站长:程序员鱼皮 老鱼简历 商务合作 增值电信业务经营许可证
2026 鱼皮AI导航 | 沪ICP备19026706号-6
🔥热门工具
朱雀AI检测朱雀AI检测
朱雀AI检测助手朱雀AI检测助手
LovartLovart
老鱼简历老鱼简历
WritePass官网WritePass官网
面多多面多多
CursorCursor
星月写作星月写作
朱雀AI检测助手朱雀AI检测助手
零感AI零感AI
Skills 推荐
relational-database-mcp-cloudbase
面向 CloudBase 关系型数据库的自动化管理,支持安全执行只读查询、写入与结构变更操作,并可检视及调整表级安全规则,确保在无应用上下文的代理环境中精准控制数据访问与修改权限。
database-index-advisor
通过分析数据库查询负载和现有索引配置,自动识别缺失的高效索引以加速慢查询,同时发现长期未被使用的冗余索引以便清理,从而在提升读取性能的同时节省存储空间并优化写入效率。
detecting-sql-injection-vulnerabilities
自动识别和分析应用程序代码及数据库查询中的 SQL 注入风险,覆盖输入点检测、查询构造审查、参数化验证与安全模式推荐,生成结构化安全报告并提供修复建议。
database
规范 NestJS 应用的数据访问层设计,涵盖 ORM 选型、连接池与分片等可扩展架构,强制使用仓库模式隔离数据库逻辑,通过异步配置加载敏感信息,禁用生产环境自动同步,依赖迁移脚本实现零停机演进,并统一要求分页、索引声明与事务保护。
prisma-schema-helper
提供 Prisma 数据模型定义的自动化辅助能力,涵盖模式校验、关系配置、字段类型推导及迁移脚本生成,支持 Node.js 等后端技术栈的数据库层快速搭建与维护。