redis-expert

Design Redis data structures, caching patterns, and Lua scripts for cluster operations.

Updated Feb 26, 2026
One-click install
npx skills add https://github.com/gagan114662/exp --skill redis-expert-gagan114662
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: redis-expert
Source: https://github.com/gagan114662/exp/tree/main/crates/openfang-skills/bundled/redis-expert
Command: npx skills add https://github.com/gagan114662/exp --skill redis-expert-gagan114662

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you leverage Redis effectively as a data structure server, cache, message broker, and real-time data platform, optimizing performance and avoiding common pitfalls.

Core Features & Use Cases

  • Data Structure Optimization: Selects the most efficient Redis data structure (sorted sets, hashes, streams, etc.) for specific access patterns.
  • Caching Strategies: Implements robust caching patterns like Cache-Aside with appropriate TTLs.
  • Performance Tuning: Advises on techniques like pipelining and Lua scripting to reduce latency and ensure atomicity.
  • Use Case: Design a real-time leaderboard for a game using Redis sorted sets, ensuring fast updates and retrieval of top players.

Quick Start

Use the redis-expert skill to implement a rate limiter for an API endpoint.

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 rate limiter for an API endpoint using Redis?

A Redis rate limiter controls API traffic by tracking request counts per user with TTL-based keys. It implements atomic increments using Lua scripting to ensure accurate distributed rate limiting without race conditions.

What is the best Redis data structure for building a real-time game leaderboard?

Redis sorted sets are the best data structure for real-time game leaderboards. They provide fast updates and efficient retrieval of top players by maintaining continuous score rankings without scanning the entire dataset.

How does the Redis Cache-Aside pattern work and when should I use it?

The Redis Cache-Aside pattern works by loading data into the cache only when requested, applying appropriate TTLs for expiration. Use it to reduce database load and optimize read performance for frequently accessed backend data.

Why should I avoid blocking commands and large data storage in Redis?

Avoiding blocking commands and large data storage in Redis prevents production pitfalls that freeze single-threaded operations. Storing bulky datasets degrades performance, causing latency spikes across all connected backend clients.

Can I use Lua scripting in Redis to ensure atomicity and reduce latency?

Yes, Lua scripting in Redis ensures atomicity by executing multiple commands as a single uninterrupted operation. This technique reduces network latency by sending compact scripts instead of multiple sequential backend requests.