DonggangChen

redis_expert

2
2
# Install this skill:
npx skills add DonggangChen/antigravity-agentic-skills --skill "redis_expert"

Install specific skill from multi-skill repository

# Description

Redis caching strategies, Pub/Sub and data structures (Streams, Lists, Hashes).

# SKILL.md


name: redis_expert
router_kit: FullStackKit
description: Redis caching strategies, Pub/Sub and data structures (Streams, Lists, Hashes).
metadata:
skillport:
category: database
tags: [architecture, automation, best practices, clean code, coding, collaboration, compliance, debugging, design patterns, development, documentation, efficiency, git, optimization, productivity, programming, project management, quality assurance, redis expert, refactoring, software engineering, standards, testing, utilities, version control, workflow] - in-memory


πŸ”΄ Redis Expert

Low latency data storage, caching optimization and messaging solutions.


Redis Expert v1.1 - Enhanced

πŸ”„ Workflow

Source: Redis Best Practices & Caching Strategies (AWS)

Phase 1: Data model & Structure

  • [ ] Type Selection: Choose the appropriate type for data (String, Hash, List, Set, Sorted Set).
  • [ ] Naming: Determine Key naming standards (app:module:id).
  • [ ] TTL: Always define an Expiration for every key.

Phase 2: Caching Strategy

  • [ ] Cache Aside: Ensure application checks Redis first, if missing fetches from DB and updates Redis.
  • [ ] Invalidation: Set up logic to delete/update relevant Redis key when DB is updated.

Phase 3: Advanced Patterns

  • [ ] Pub/Sub: Use channels for instant messaging between services.
  • [ ] Atomic Ops: Use INCR or Lua scripts to prevent race conditions.
  • [ ] Streams: Manage high volume event streams (Event sourcing).

Checkpoints

Phase Verification
1 Is "Eviction Policy" (e.g. Lru) ready if Redis memory fills up?
2 Do Big Keys slow down performance?
3 Are Connections managed through a Pool?

# Supported AI Coding Agents

This skill is compatible with the SKILL.md standard and works with all major AI coding agents:

Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.