redis-cache

oimiragieo's avatarfrom oimiragieo

Redis caching operations and data structures

1stars🔀0forks📁View on GitHub🕐Updated Jan 11, 2026

When & Why to Use This Skill

The Redis Cache skill empowers Claude agents to interact directly with Redis instances for high-performance caching and complex data structure management. It facilitates significant context savings (up to 90%+) by offloading data storage from the LLM's prompt window to an external memory layer. This skill supports a wide range of operations including basic key-value pairs, hashes, lists, sets, and sorted sets, making it essential for developers and performance engineers building scalable, stateful AI applications.

Use Cases

  • Context Window Optimization: Reducing token usage and costs by storing large datasets or session histories in Redis instead of passing them in every prompt.
  • Real-time State Management: Using Redis data structures like Sorted Sets for live leaderboards or Lists for message queues within an agentic workflow.
  • Application Performance Tuning: Implementing caching layers for API responses or database queries to decrease latency and improve user experience.
  • Data Lifecycle Control: Managing temporary data with TTL (Time-To-Live) settings and performing pattern-based key lookups for maintenance and debugging.
nameredis-cache
descriptionRedis caching operations and data structures
version1.0.0
allowed-tools[Bash, Read]

Redis Cache Skill

Overview

Redis caching and data structure operations. 90%+ context savings.

Requirements

  • Redis CLI or client library
  • REDIS_URL environment variable

Tools (Progressive Disclosure)

Key Operations

Tool Description Confirmation
get Get key value No
set Set key value Yes
del Delete key Yes
keys List keys by pattern No
ttl Get key TTL No

Data Structures

Tool Description
hget/hset Hash operations
lpush/rpush List operations
sadd/smembers Set operations
zadd/zrange Sorted set operations

Server

Tool Description
ping Test connection
info Server info
dbsize Key count

BLOCKED

Tool Status
flushall BLOCKED
flushdb BLOCKED

Agent Integration

  • developer (primary): Caching implementation
  • performance-engineer (secondary): Cache optimization

Security

⚠️ Never expose REDIS_URL ⚠️ flushall/flushdb BLOCKED

redis-cache – AI Agent Skills | Claude Skills