redis-expert

Guide Redis data structures, caching patterns, Lua scripting, and cluster operations.

18.1k|2.3k|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/RightNow-AI/openfang --skill redis-expert-rightnow-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: redis-expert
Source: https://github.com/RightNow-AI/openfang/tree/main/crates/openfang-skills/bundled/redis-expert
Command: npx skills add https://github.com/RightNow-AI/openfang --skill redis-expert-rightnow-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps users leverage Redis effectively for data storage, caching, message brokering, and real-time data processing, optimizing performance and avoiding common pitfalls.

Core Features & Use Cases

  • Data Structure Optimization: Guides users to select the most efficient Redis data structure for their specific access patterns.
  • Caching Strategies: Provides best practices for implementing cache-aside patterns and managing cache invalidation with TTL.
  • Performance Tuning: Offers techniques for optimizing Redis usage, including pipelining, Lua scripting, and avoiding blocking commands.
  • Use Case: A developer needs to implement a real-time leaderboard for a game. This Skill can guide them on using sorted sets (ZADD, ZRANGEBYSCORE) for efficient score management and retrieval.

Quick Start

Use the redis-expert skill to implement a distributed lock using Redis.

Frequently Asked Questions about redis-expert

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

FAQPage Schema
How do I implement a distributed lock in Redis?

Redis distributed locks use atomic key setting with TTL for safe concurrent access. This Skill guides you through implementing distributed locks correctly, ensuring reliable resource synchronization while avoiding common race conditions and deadlocks.

What is the best way to build a real-time leaderboard with Redis data structures?

Redis sorted sets provide the best way to build real-time leaderboards using `ZADD` and `ZRANGEBYSCORE`. This Skill guides you on leveraging sorted sets for efficient score management and fast retrieval in gaming applications.

How does Redis Lua scripting improve performance tuning?

Redis Lua scripting improves performance by executing multiple commands atomically on the server to reduce network round-trips. This Skill helps optimize Redis usage by writing efficient Lua scripts that work safely within the single-threaded event loop model.

Why should I avoid using the KEYS command in Redis production environments?

The KEYS command blocks the Redis single-threaded event loop, causing severe latency spikes in production. This Skill warns against such pitfalls and recommends safe alternatives like SCAN for iterating over keys without degrading performance.

When do I need Redis Pub/Sub for message brokering?

Redis Pub/Sub is needed for message brokering when building real-time data processing and event distribution systems. This Skill explains common messaging patterns, helping you design efficient Pub/Sub workflows while understanding limitations regarding persistent message delivery.

Can I store large binary blobs in Redis for caching?

Storing large binary blobs in Redis is discouraged because it wastes memory and degrades overall performance. This Skill guides users toward efficient caching strategies, recommending smaller data chunks and proper cache-aside patterns with TTL for optimal memory management.