redis

redis is a skill for Claude Code, Codex from G1Joshi/Agent-Skills. It costs 24 tokens per session (452 once invoked), scanned A, original, MIT.

A Redis guide for using an in-memory data store that can act as a cache, database, message broker, or real-time event system.

In plain words
What is it for?
Use it for caching, user sessions, counters, leaderboards, background queues, publish-and-subscribe messaging, and streams.
Why use it?
It helps applications retrieve frequently used data quickly and coordinate short-lived state or background work.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for caching, user sessions, counters, leaderboards, background queues, publish-and-subscribe messaging, and streams.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/g1joshi/agent-skills/redis
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add G1Joshi/Agent-Skills --skill redis
Clone the repo
git clone --depth 1 https://github.com/G1Joshi/Agent-Skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for redis

README.md
[![agentmods](https://agentmods.dev/badge/skills/g1joshi/agent-skills/redis.svg)](https://agentmods.dev/skills/g1joshi/agent-skills/redis)
Your own site
<a href="https://agentmods.dev/skills/g1joshi/agent-skills/redis"><img src="https://agentmods.dev/badge/skills/g1joshi/agent-skills/redis.svg" alt="Measured on agentmods" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 452 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00024 $0.00452
Opus 5 $0.00012 $0.00226
Sonnet 5 $0.00005 $0.00090
Haiku 4.5 $0.00002 $0.00045

Measured 5d ago against content hash b383c308b395, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

redis scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/databases/redis/SKILL.md · 61 lines

What it actually says

Redis

Redis (Remote Dictionary Server) is an in-memory data structure store, used as a database, cache, and message broker. It is incredibly fast.

When to Use

  • Caching: The #1 use case. Cache HTML, JSON, or DB results.
  • Session Store: User sessions (speed + automatic expiry).
  • Queues: Simple background job queues using Lists (LPUSH/RPOP).
  • Real-time: Leaderboards, Counting, Pub/Sub.

Quick Start

# Set a value with 10 second expiry
SET session:123 "active" EX 10

# Increment a counter atomically
INCR page:views

# Store a hash (object)
HSET user:100 name "Jeevan" role "admin"

Core Concepts

Single Threaded

Redis uses a main single thread. Requests are processed sequentially, atomic by design. (Though I/O threading runs in background).

Persistence (RDB vs AOF)

  • RDB: Snapshots every X minutes. Fast restart, potential data loss.
  • AOF: Logs every write. Slower, better durability.

Data Structures

Strings, Lists, Sets, Sorted Sets (ZSET), Hashes, Bitmaps, HyperLogLogs, Geospatial, Streams.

Best Practices (2025)

Do:

  • Use Redis Stack: Includes extensions like RediSearch (FT.SEARCH), RedisJSON, and Bloom Filters.
  • Use Connection Pooling: Opening connections is expensive.
  • Set maxmemory-policy: Configure what happens when RAM is full (e.g., allkeys-lru to delete old data).

Don't:

  • Don't use KEYS *: It blocks the server scanning all keys. Use SCAN.
  • Don't store huge values: Redis is for small, fast data.

References

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 61 lines · 24 tokens per session scan A b383c308b395

Subscribe to this mod's changes

redis is a skill published in the GitHub repository G1Joshi/Agent-Skills (12 stars, last pushed 7mo ago), licensed MIT. It adds 24 tokens to every session and 452 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

redis-caching-and-pubsub

Architecting high-performance caching strategies, Cache-Aside/Write-Through/Write-Behind patterns, Redis Pub/Sub, Streams, eviction policies, distributed locking (Redlock), and memory optimization. Use when implementing Redis caching, real-time messaging, rate limiting, or session management.

hamzabellouch/agent-skills · 64 tokens

redis-operations

Redis operational runbooks — memory management, eviction policy, persistence config, Sentinel/Cluster, K8s-hosted Redis ops.

sawrus/agent-guides · 30 tokens

event-driven-architecture-saga-patterns

Designing resilient, eventual-consistency distributed transactions using the Saga Pattern (Choreography and Orchestration). Includes Outbox Pattern, Change Data Capture (CDC), idempotent consumers, compensating transactions, dual-write prevention, and saga recovery mechanisms. Use when implementing distributed…

hamzabellouch/agent-skills · 75 tokens

bullmq-specialist

BullMQ expert for Redis-backed job queues, background processing, and reliable async execution in Node.js/TypeScript applications.

aboalrejal-ai/skills · 29 tokens

websocket-engineer

Use when building real-time communication systems with WebSockets or Socket.IO. Invoke for bidirectional messaging, horizontal scaling with Redis, presence tracking, room management.

eric861129/SKILLS_All-in-one · 36 tokens

redis-caching

Redis caching, rate limiting, session storage, pub/sub, and production integration patterns for TypeScript, Next.js, NestJS, and Prisma applications. Use when adding cache-aside or write-through caching, rate limiting, session or lock storage, pub/sub fanout, or reviewing Redis key design and TTLs.

shipshitdev/skills · 67 tokens