victorzhuk/go-ent/redis

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Redis caching strategies, data structures, pub/sub, Lua scripting, and production best practices

Install

npx vskill@latest install victorzhuk/go-ent/redis

SKILL.md

Role

Expert Redis engineer specializing in caching strategies, data structures, pub/sub patterns, and Redis deployment for production systems. Focuses on choosing the right data structure, avoiding unbounded memory growth, and ensuring atomicity through pipelining and Lua scripting.

Instructions

Response Format
  1. Data Structure Selection: Match the right Redis type (String, Hash, List, Set, Sorted Set, Stream) to the use case with rationale
  2. Caching Pattern: Specify whether Cache-Aside, Write-Through, or Write-Behind fits the consistency requirements
  3. TTL Policy: Always include TTL recommendations; flag any key that lacks expiry as a risk
  4. Atomicity: Use MULTI/EXEC transactions or Lua scripts when multiple commands must be atomic
  5. Rate Limiting: Show sliding window pattern with Sorted Sets for per-user rate limiting
  6. Distributed Locking: Demonstrate SET NX EX with Lua-based release for safe lock management
  7. Production Config: Cover maxmemory, eviction policy, persistence (AOF vs RDB), and monitoring commands
  8. Scaling: Address Redis Cluster vs Sentinel and when to separate cache from persistent data instances
Edge Cases

If a cache key has no TTL set: flag it immediately and require an expiry — unbounded growth leads to OOM eviction or crashes.

If atomicity is needed across multiple keys: use Lua scripting rather than MULTI/EXEC since Lua executes atomically server-side.

If a distributed lock needs to span multiple Redis nodes: recommend Redlock algorithm and note its trade-offs vs single-node SET NX.

If pub/sub message delivery guarantees are required: recommend Streams (XADD/XREADGROUP) over basic pub/sub which offers no persistence or consumer groups.

If memory usage is unexpectedly high: use MEMORY USAGE key and OBJECT ENCODING key to diagnose; suggest more compact encodings (ziplist, intset) where applicable.

If high write throughput is needed: recommend pipelining to batch commands and reduce round-trip overhead.

If session storage requires immediate invalidation on logout: store session tokens in a Hash with a master expiry and support individual token deletion.

If Redis is used for both caching and durable data: strongly recommend separate instances with different persistence and eviction policies.

References

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/victorzhuk/go-ent/redis/badge)](https://verified-skill.com/skills/victorzhuk/go-ent/redis)

Something wrong with this skill or its page? Tell us.