/major-ai-skills:redisfrom major-ai-skills
Design Redis caching, TTLs, and eviction policies; configure ACL auth and persistence (RDB/AOF); avoid KEYS, unbounded memory, and backup-restore windows that lose cache-aside coherency.
Ships in major-ai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Redis is a single-threaded (per shard) in-memory data structure server: strings, hashes, lists, sets, sorted sets, streams. It excels at cache, rate limits, coordination, and lightweight queues—but eviction ≠ persistence and cache ≠ system of record unless durability is explicitly engineered.
App -> Redis (standalone / Sentinel / Cluster)
|- TTL + maxmemory-policy (eviction)
|- optional RDB snapshots + AOF log
|- ACL users / TLS (managed offerings)
|- replication buffer (not counted in maxmemory)
Use when
Do not use when
KEYS * or FLUSHALL in production—refuse without approvaltimeout on idle clients.DEL/UNLINK or versioned keys).allkeys-lru evicts cache keys under pressure; noeviction rejects writes—pick per instance role. Leave headroom below maxmemory for replication buffers.appendfsync everysec ≈ 1s loss window; always is slower. Copy RDB/AOF during BACKUP SEAL or off-host backups—not mid-rewrite without guidance.CLIENT PAUSE only in controlled maintenance.XACK after side effects; pending entries list (PEL) needs monitoring.requirepass alone is legacy; prefer ACL; never commit passwords; rotate on compromise.SET shop:prod:item:42 '{"id":42,"price":199}' EX 300 NX
GET shop:prod:item:42
# On DB write success:
UNLINK shop:prod:item:42
SET ratelimit:user:9:202610061200 0 EX 60 NX
INCR ratelimit:user:9:202610061200
XGROUP CREATE events order-workers $ MKSTREAM
XREADGROUP GROUP order-workers consumer1 COUNT 10 BLOCK 2000 STREAMS events >
# process ...
XACK events order-workers <message-id>
SCAN 0 MATCH shop:prod:item:* COUNT 100
| Failure signature | Root cause | Diagnostic & fix |
|---|---|---|
| OOM / evictions spike | maxmemory too low or no TTL | Raise memory; TTL all cache keys; split instances |
OOM command not allowed | noeviction + full memory | Eviction policy or scale; stop non-cache use on same DB |
| Data “lost” after restart | No AOF/RDB or wrong dir | Enable hybrid persistence; verify backup files |
| Slow p99 | Big values / KEYS / Lua loops | Shrink payloads; SCAN; split hot keys |
| Replica lag / partial sync fail | Buffer limits | Increase repl backlog; reduce write burst |
| Cache stampede | Thundering herd on expiry | Jitter TTL; singleflight in app |
| Restore mismatch | Restored RDB while app wrote DB | Treat cache as cold; flush namespaced keys post-restore |
{user:42}:... for multi-key ops in one slot.used_memory, evicted_keys, instantaneous_ops_per_sec, connected_clients.@postgresql — system of record behind cache@kafka / @nats — durable event bus vs Redis streams@opentelemetry — trace cache miss latencyMANDATORY: Never recommend Redis as sole durable store without documented AOF/RDB/backup strategy and restore test. Set TTL on cache keys. Ban
KEYS *in production paths. Ack stream messages only after successful side effects.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alivirgo/major-ai-skills --plugin major-ai-skills412 skills in this plugin
/3d-slicerAutomate 3D Slicer research workflows with MRML, VTK/ITK, DICOM data, and Segment Editor. Use for software workflows, not clinical interpretation./abbreviated-git-statusInspect Git branch, staging, and working-tree changes with short or porcelain status output when a compact repository check is needed./ableton-liveAutomate Ableton Live sessions with Python MIDI Remote Scripts, Max for Live, AbletonOSC, and Link synchronization./act-as-a-personal-tutorExplain a subject step by step, assess prior knowledge, and use short exercises to check understanding before advancing.Other plugins' skills for the same job