redis

redis is a skill for Claude Code, Codex from neverinfamous/memory-journal-mcp. It costs 80 tokens per session (452 once invoked), scanned A, original, MIT.

Redis usage guidance for Node and TypeScript projects. Redis is a fast in-memory data store often used for caching, temporary values, and simple collections of data.

In plain words
What is it for?
Use it when choosing cache patterns, managing connections and expiration times, or storing data in Redis hashes, sets, and lists.
Why use it?
It helps avoid slow or unreliable Redis setups, such as opening a new connection for every request or letting many cached items expire at once.

Skill for Claude CodeCodex

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

Good fit Use it when choosing cache patterns, managing connections and expiration times, or storing data in Redis hashes, sets, and lists.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/neverinfamous/memory-journal-mcp/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 neverinfamous/memory-journal-mcp --skill redis
Clone the repo
git clone --depth 1 https://github.com/neverinfamous/memory-journal-mcp

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/neverinfamous/memory-journal-mcp/redis/github.svg)](https://agentmods.dev/skills/neverinfamous/memory-journal-mcp/redis)
Your own site
<a href="https://agentmods.dev/skills/neverinfamous/memory-journal-mcp/redis"><img src="https://agentmods.dev/badge/skills/neverinfamous/memory-journal-mcp/redis/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for redis

Your own site · 80×15
<a href="https://agentmods.dev/skills/neverinfamous/memory-journal-mcp/redis"><img src="https://agentmods.dev/badge/skills/neverinfamous/memory-journal-mcp/redis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 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.00080 $0.00452
Opus 5 $0.00040 $0.00226
Sonnet 5 $0.00016 $0.00090
Haiku 4.5 $0.00008 $0.00045

Measured 10d ago against content hash 995c312ab22c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 10d 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/redis/SKILL.md · 32 lines

What it actually says

Redis Best Practices

Standards for deploying and using Redis as a cache or key-value store.

1. Connection Management

  • Connection Pooling: Use a persistent connection object across your application. Do not create a new Redis client on every request.
  • Timeouts & Reconnects: Always configure connectTimeout and strict reconnect strategies. Redis can drop connections under load; your app must handle retries gracefully without stalling.

2. Caching Strategies

  • Cache-Aside Pattern: Read from cache; if miss, read from DB and write to cache with a TTL.
  • Thundering Herd: Use brief locks (distributed locking) or stale-while-revalidate patterns for heavily accessed keys that expire, to prevent database spikes.
  • TTL (Time-To-Live): ALWAYS attach a TTL to cache keys unless the key is definitively a permanent config value. Use staggered TTLs (e.g., base TTL + random jitter) to avoid mass expirations.

3. Data Structures

  • Hashes (HSET/HGET): Use Hashes to store objects instead of stringified JSON when you need to update or read individual fields.
  • Sets (SADD/SMEMBERS): Use Sets for unique collections (e.g., user IDs online) and quick membership checks.
  • Pipelines: Use MULTI/EXEC or Pipelines to batch commands together and save network round trips.

4. Security

  • Never expose the Redis port (6379) to the public internet. Ensure it is accessible only within a VPC or private network.
  • Use TLS (rediss://) and authentication for managed instances (e.g., AWS ElastiCache, Render Redis).
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. 10d ago First seen · 32 lines · 80 tokens per session scan A 995c312ab22c

Subscribe to this mod's changes

redis is a skill published in the GitHub repository neverinfamous/memory-journal-mcp (20 stars, last pushed 1mo ago), licensed MIT. It adds 80 tokens to every session and 452 once invoked, about $0.0004 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-08-30.

Related

Other skills, from other repositories