elasticache-redis

elasticache-redis is a skill for Claude Code from AlexK020908/infra-designer. It costs 0 tokens per session (851 once invoked), scanned A, original, MIT.

A managed Redis data store that keeps data in memory for very fast reads and writes. Redis stores data structures such as counters, sets, and sorted lists.

In plain words
What is it for?
Caching results, storing sessions, maintaining counters, and coordinating small, atomic updates between application processes.
Why use it?
It avoids repeated database work for data that must be accessed quickly, such as sessions or cache entries. Because memory is limited and one slow command can block others, it is not suitable for every dataset.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the infra-designer plugin — 19 skills, 5 commands shipped together

Good fit Caching results, storing sessions, maintaining counters, and coordinating small, atomic updates between application processes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alexk020908/infra-designer/elasticache-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 AlexK020908/infra-designer --skill elasticache-redis
Clone the repo
git clone --depth 1 https://github.com/AlexK020908/infra-designer

Made for: Claude Code.

Or install infra-designer, the plugin that ships this one along with the rest of its 19 skills, 5 commands.

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 elasticache-redis

README.md
[![agentmods](https://agentmods.dev/badge/skills/alexk020908/infra-designer/elasticache-redis/github.svg)](https://agentmods.dev/skills/alexk020908/infra-designer/elasticache-redis)
Your own site
<a href="https://agentmods.dev/skills/alexk020908/infra-designer/elasticache-redis"><img src="https://agentmods.dev/badge/skills/alexk020908/infra-designer/elasticache-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 elasticache-redis

Your own site · 80×15
<a href="https://agentmods.dev/skills/alexk020908/infra-designer/elasticache-redis"><img src="https://agentmods.dev/badge/skills/alexk020908/infra-designer/elasticache-redis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 851 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.00000 $0.00851
Opus 5 $0.00000 $0.00426
Sonnet 5 $0.00000 $0.00170
Haiku 4.5 $0.00000 $0.00085

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

Security

Grade A, and why

elasticache-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 11d 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.

infra-plugin/components/aws/elasticache-redis/SKILL.md · 31 lines

How it starts

The opening of the file, as written. The whole thing — 31 lines — stays where its author put it; the contents beside it link to each section on GitHub.

aws.elasticache.redis

In-memory data structure store: microsecond commands, sub-millisecond network reads, ~100k+ writes/sec per node. Fast because everything lives in RAM and runs on one thread.

Execution model

  • Single-threaded: one command at a time, in order. Every individual command (and any Lua script) is atomic with no locks — this is why INCR counters and SET NX work without races.
  • Flip side: one slow command (KEYS, huge ZRANGE, big Lua script) blocks every other client. Keep operations small; the single core is rarely the bottleneck otherwise.
  • N+1 query patterns that ruin SQL are tolerable here — pipeline or MGET to pay one round trip instead of a hundred.

Sizing → config keys

  • Redis is memory-bound, not CPU-bound. Pick nodeType by working-set size in RAM, not ops/sec — one node already handles ~100k ops/sec. cache.t4g.micro (default) is fine for small session/cache sets; move to cache.r7g.* when the dataset grows, before adding nodes.
  • Memory full = writes rejected unless an eviction policy (e.g. allkeys-lru, sampled approximation) is set. If eviction would be wrong (data isn't reconstructible), Redis is the wrong store.
  • numCacheNodes > 1 + multiAz: true buys: automatic failover (HA) and read replicas that multiply read capacity. Caveats: clients read primary by default (must enable replica reads), and replicas don't help write-hot keys.
  • Single node is acceptable when contents are a pure reconstructible cache and a few minutes of cold-cache downtime is tolerable. Replication is async — a failover can drop the last acknowledged writes even with multiAz.
  • transitEncryption: true and atRestEncryption: true always; private subnets only. Network edge from ecs/apprunner → redis.
  • Beyond this config surface: cluster mode shards keys across 16,384 hash slots for >1-node write scaling — a different ElastiCache mode, not these knobs.

Data structures that change designs

  • Strings/hashes: cache entries, sessions, counters (INCR). Hash = object with fields (e.g. product:123 → name, price).
  • Sorted sets: leaderboards/top-K in log time (ZADD score, ZREMRANGEBYRANK to keep top N) and sliding-window rate limits (timestamps as scores: ZREMRANGEBYSCORE + ZCARD + ZADD in one Lua script). Fixed-window limit = INCR + EXPIRE-on-first-request, also as one Lua script.
  • Streams: append-only log with consumer groups (XADD/XREADGROUP/XCLAIM) — good for modest work queues and event fan-out when Redis is already present; items can be redelivered, so make processing idempotent. Long retention/replay at scale is Kafka's job.
  • Geospatial: GEOADD/GEOSEARCH (geohash in a sorted set) — proximity search without another datastore.
  • Pub/Sub: at-most-once, in-memory broadcast; offline subscribers miss messages. Architecture in realtime-updates.md.

Read the full file on GitHub · 31 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago First seen · 31 lines · 0 tokens per session scan A 02279c609cc0

Subscribe to this mod's changes

elasticache-redis is a skill published in the GitHub repository AlexK020908/infra-designer (2 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 851 tokens. 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-31.

Related

Other skills, from other repositories

google-cloud-storage-fuse

Mounts Cloud Storage buckets as a POSIX file system with Cloud Storage FUSE (gcsfuse). Use when interacting with gcsfuse: decide whether FUSE, native gs:// reads, or Filestore/Managed Lustre fits a workload, deploy tuned mounts on GKE, Compute Engine, or Cloud Run, enable and size file, stat, and list caches, tune…

google/skills · 214 tokens

aws-cloudformation-elasticache

Provides AWS CloudFormation patterns for ElastiCache Redis or Memcached infrastructure, including subnet groups, parameter groups, security controls, and cross-stack outputs. Use when designing cache tiers, high-availability replication groups, encryption settings, or reusable CloudFormation templates for application…

giuseppe-trisciuoglio/developer-kit · 61 tokens

doris-debug-cloud

Use for Doris storage-compute separation (cloud mode) issues: meta-service latency, cache miss storms, object store throughput, and shared-nothing config conflicts in compute groups.

apache/doris-skills · 40 tokens

azure-cosmos-db

Expert knowledge for Azure Cosmos DB development including troubleshooting, best practices, decision making, architecture & design patterns, limits & quotas, security, configuration, integrations & coding patterns, and deployment. Use when using Cosmos DB SQL/Mongo/Cassandra APIs, change feed, vector search…

MicrosoftDocs/Agent-Skills · 122 tokens

azure-sql-database

Expert knowledge for Azure SQL Database development including troubleshooting, best practices, decision making, architecture & design patterns, limits & quotas, security, configuration, integrations & coding patterns, and deployment. Use when planning DTU/vCore tiers, Hyperscale, geo-replication/DR, Data…

MicrosoftDocs/Agent-Skills · 132 tokens

azure-database-postgresql

Expert knowledge for Azure Database for PostgreSQL development including troubleshooting, best practices, decision making, architecture & design patterns, limits & quotas, security, configuration, integrations & coding patterns, and deployment. Use when using Flexible Server, replicas, PgBouncer, Query Store, Redis…

MicrosoftDocs/Agent-Skills · 133 tokens