redis-expert

Provides guidance on Redis data structures, caching, and cluster operations.

1|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/0xMerl99/FangAI --skill redis-expert-0xmerl99
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: redis-expert
Source: https://github.com/0xMerl99/FangAI/tree/main/crates/openfang-skills/bundled/redis-expert
Command: npx skills add https://github.com/0xMerl99/FangAI --skill redis-expert-0xmerl99

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps users leverage Redis effectively for data structures, caching, and advanced operations, preventing common performance pitfalls and ensuring efficient data management.

Core Features & Use Cases

  • Data Structure Optimization: Guides users to select the most appropriate Redis data structure (hashes, sorted sets, streams, etc.) for their specific access patterns.
  • Caching Strategies: Implements patterns like Cache-Aside and provides guidance on setting appropriate TTLs to prevent memory accumulation.
  • Advanced Operations: Assists with Lua scripting for atomic operations, distributed locking, and rate limiting.
  • Use Case: A developer needs to implement a real-time leaderboard for a game. This Skill can guide them on using Redis Sorted Sets (ZADD, ZRANGEBYSCORE) to efficiently manage and query player scores.

Quick Start

Use the redis-expert skill to implement a rate limiter using sorted sets.

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 using Redis sorted sets?

You can implement a rate limiter using Redis sorted sets by adding timestamps as scores. This approach allows you to efficiently count and evict requests outside the designated time window, ensuring accurate distributed rate limiting.

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

Redis Sorted Sets are the best data structure for a real-time leaderboard. By using commands like ZADD to update scores and ZRANGEBYSCORE to query rankings, you can efficiently manage and retrieve player data.

How do I handle Redis hot keys and prevent performance degradation?

To handle Redis hot keys and prevent performance degradation, you must identify uneven access patterns and apply mitigation strategies. Proper memory optimization and cluster topology guidance help ensure graceful degradation during unavailability.

Can I use Lua scripting in Redis for atomic operations and distributed locking?

Yes, you can use Lua scripting in Redis to perform atomic operations and manage distributed locking. This ensures complex multi-step commands execute as a single uninterrupted operation, preventing race conditions.

What are the tradeoffs of Redis persistence and how do I optimize memory?

Redis persistence tradeoffs involve balancing data durability against performance overhead. You can optimize memory by selecting the most appropriate data structures for your access patterns and setting appropriate TTLs to prevent memory accumulation.