redis-design

Enforce Redis key naming, hash tags, TTL, and memory policies.

1|2|Updated Apr 6, 2026
One-click install
npx skills add https://github.com/parisgroup-ai/imersao-ia-setup --skill redis-design
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: redis-design
Source: https://github.com/parisgroup-ai/imersao-ia-setup/tree/main/skills/redis-design
Command: npx skills add https://github.com/parisgroup-ai/imersao-ia-setup --skill redis-design

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams design Redis data models and caching strategies that are consistent, cluster-friendly, and memory-efficient.

Core Features & Use Cases

  • Key naming conventions and schemas that enforce predictable, environment-scoped keys.
  • Hash tags for clustering: ensure related keys share tags to enable atomic operations within Redis clusters.
  • Data structure guidance: select Hash, Set, Sorted Set, Stream, and other structures to optimize access patterns and memory usage.
  • Cache patterns and TTL: apply cache-aside, write-through, and write-behind strategies with disciplined expiration to prevent memory bloat.
  • Observability and security: include monitoring, alerts, ACLs, and TLS best practices for safe operations.

Quick Start

Define your Redis key schema using the {env}:{app}:{entity}:{id} format and apply hash tags for related keys to guarantee cluster-friendly operations.

Frequently Asked Questions about redis-design

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

FAQPage Schema
How do I design Redis keys for cluster compatibility?

Redis key design for clustering requires using hash tags to group related keys. Wrapping key segments in curly braces ensures related keys share a hash slot, enabling atomic operations across Redis clusters.

What is the best way to prevent memory bloat in Redis caches?

Preventing memory bloat requires applying disciplined TTL expiration and cache patterns like cache-aside or write-through. Selecting optimal data structures such as Hash or Set also minimizes memory usage.

How do I structure Redis data models for time-series events?

Structuring Redis data models for time-series events involves selecting appropriate structures like Sorted Sets or Streams. Applying predictable key naming schemas and hash tags ensures efficient access patterns and clustering readiness.

When do I need to use hash tags in Redis?

Hash tags are needed when designing Redis data models for clustered environments. They ensure related keys map to the same slot, which is required for executing atomic operations like transactions across the cluster.

Does this approach support pub/sub patterns and session stores?

Yes, this approach supports pub/sub patterns and session stores by enforcing consistent key naming and clustering readiness. It applies safe memory usage and TTL enforcement across these varied use cases.