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.
npx skills add AlexK020908/infra-designer --skill elasticache-redisgit clone --depth 1 https://github.com/AlexK020908/infra-designerWrote 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.
[](https://agentmods.dev/skills/alexk020908/infra-designer/elasticache-redis)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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
nodeTypeby 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 tocache.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: truebuys: 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: trueandatRestEncryption: truealways; 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.
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.
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.
- 11d ago First seen · 31 lines · 0 tokens per session scan A 02279c609cc0
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.
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…
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…
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.
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…
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…
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…