Redis Patterns for Coding Agents

Comprehensive Redis design patterns, best practices, and command references. This site is optimized for both human developers and LLM coding agents.

Important: These documents are specific to Redis (redis.io) and may not apply to other systems that share parts of the codebase, such as Valkey, KeyDB, Dragonfly, or other Redis-compatible databases. When working with forks or alternatives, verify compatibility as implementations may differ.

How to Use This Documentation

For Humans: Browse the sections below and click on any pattern to read the documentation.

For LLM Coding Agents: Start by fetching the machine-readable index:

llms.txt — Lists all available documentation files with descriptions

Then fetch individual .md files as needed. All pattern documents are written in Markdown with Redis commands shown as indented code blocks.

For Command Reference: The official Redis documentation is mirrored locally:

commands-index.md — Auto-generated index of all commands by category
commands/content/commands/ — Individual command docs (e.g., set.md, hset.md)
Official Resources:
• Source Code: github.com/redis/redis
• Documentation: github.com/redis/docsredis.io/docs

Commands Reference

Browse Redis commands organized by category:

This is a mirror of github.com/redis/docs.

Fundamental Design Patterns

Core architectural patterns for building systems with Redis.

Community Patterns

Patterns developed by the Redis community for common use cases.

Production Patterns

Real-world patterns from major tech companies at scale.


Quick Start for AI Agents: Fetch llms.txt first, then retrieve specific .md files as needed.