Comprehensive performance optimization guide for Redis, including Redis Query Engine, vector search, and semantic caching. Contains 29 rules across 11 categories, prioritized by impact to guide automated optimization and code generation.
When to Apply
Reference these guidelines when:
Designing Redis data models and key structures
Implementing caching, sessions, or real-time features
Using Redis Query Engine (FT.CREATE, FT.SEARCH, FT.AGGREGATE)
Building vector search or RAG applications with RedisVL
Implementing semantic caching with LangCache
Optimizing Redis performance and memory usage
Rule Categories by Priority
Priority
Category
Impact
Prefix
1
Data Structures & Keys
HIGH
data-
2
Memory & Expiration
HIGH
ram-
3
Connection & Performance
HIGH
conn-
4
JSON Documents
MEDIUM
json-
5
Redis Query Engine
HIGH
rqe-
6
Vector Search & RedisVL
HIGH
vector-
7
Semantic Caching
MEDIUM
semantic-cache-
8
Streams & Pub/Sub
MEDIUM
stream-
9
Clustering & Replication
MEDIUM
cluster-
10
Security
HIGH
security-
11
Observability
MEDIUM
observe-
Quick Reference
1. Data Structures & Keys (HIGH)
data-choose-structure - Choose the Right Data Structure
data-key-naming - Use Consistent Key Naming Conventions
2. Memory & Expiration (HIGH)
ram-limits - Configure Memory Limits and Eviction Policies
ram-ttl - Set TTL on Cache Keys
3. Connection & Performance (HIGH)
conn-blocking - Avoid Slow Commands in Production
conn-pipelining - Use Pipelining for Bulk Operations
conn-pooling - Use Connection Pooling or Multiplexing
conn-timeouts - Configure Connection Timeouts
4. JSON Documents (MEDIUM)
json-partial-updates - Use JSON Paths for Partial Updates
json-vs-hash - Choose JSON vs Hash Appropriately
5. Redis Query Engine (HIGH)
rqe-dialect - Use DIALECT 2 for Query Syntax
rqe-field-types - Choose the Correct Field Type
rqe-index-creation - Index Only Fields You Query
rqe-index-management - Manage Indexes for Zero-Downtime Updates
rqe-query-optimization - Write Efficient Queries
6. Vector Search & RedisVL (HIGH)
vector-algorithm-choice - Choose HNSW vs FLAT Based on Requirements
vector-hybrid-search - Use Hybrid Search for Better Results
Run npx skillmds@latest add comeonoliver/redis-development in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Redis Best Practices It is listed under AI & ML on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
ComeOnOliver (@comeonoliver) published this skill. Their other Agent Skills are listed on their SkillMD profile.