redis

Design Redis deployments covering data modeling, TTL, persistence, HA, and security.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/westonwrz/codex-skills-by-codex --skill redis-westonwrz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: redis
Source: https://github.com/westonwrz/codex-skills-by-codex/tree/main/redis
Command: npx skills add https://github.com/westonwrz/codex-skills-by-codex --skill redis-westonwrz

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and agents (resource) components.

What problem does it solve?

This Skill helps you design, implement, and operate Redis (6+) safely and efficiently, avoiding common pitfalls and ensuring optimal performance and reliability.

Core Features & Use Cases

  • Redis Role Selection: Choose Redis's role (cache, session, rate-limit, queue) based on your needs.
  • Data Modeling & Operations: Design keys, model data structures, and manage TTLs, memory, and eviction policies.
  • High Availability & Security: Implement HA strategies, secure your Redis instance, and debug performance issues.
  • Use Case: You need to set up a Redis instance to act as a high-performance cache for your web application, ensuring data is efficiently stored, retrieved, and evicted when necessary, while also being secure and highly available.

Quick Start

Use the redis skill to design a Redis plan including keys, TTLs, eviction, persistence, and HA, and identify performance and security risks.

Frequently Asked Questions about redis

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

FAQPage Schema
How do I design a Redis caching strategy with TTLs and eviction policies?

Design Redis caching by selecting appropriate eviction policies, modeling data structures efficiently, and setting TTLs to manage memory. This ensures optimal performance and automatic data eviction when capacity is reached.

What is the best way to configure Redis high availability with Sentinel vs Cluster?

Configure Redis high availability by choosing Sentinel for automatic failover with replication, or Cluster for horizontal scaling across multiple nodes. Sentinel suits single-master setups, while Cluster distributes data across shards for higher throughput.

How do I debug Redis performance and latency issues using slowlog?

Debug Redis performance issues by analyzing slowlog to identify expensive commands and monitoring latency events. Inspect blocking commands and anti-patterns to resolve bottlenecks and restore efficient data operations.

Can I secure Redis 6+ using ACLs and TLS network encryption?

Secure Redis 6+ by configuring Access Control Lists to restrict commands per user and enabling TLS for network encryption. This protects data in transit and limits unauthorized access to sensitive cache and session operations.

How do I choose between RDB and AOF persistence for my Redis database?

Choose between RDB and AOF persistence by weighing RDB's faster startup and compact snapshots against AOF's finer-grained durability. AOF logs every write operation, reducing data loss risk during failures compared to RDB.

What are common Redis anti-patterns I should avoid for rate limiting and queues?

Avoid Redis anti-patterns like using blocking commands that stall throughput, oversized keys that cause latency spikes, and lacking memory bounds for rate-limiting or queue operations. Proper data modeling and TTL strategies prevent these bottlenecks.