redis-cache-design
Design Redis caching strategy with clear keys, TTL, invalidation, and consistency trade-offs.
Skill by cong1ling
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/cong1ling-redis-cache-design
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/redis-cache-design
What's inside
- Skill name
redis-cache-design- Description
- Design Redis caching strategy with clear keys, TTL, invalidation, and consistency trade-offs.
- License
- MIT
- Instructions
- 71 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Redis Cache Design Use this skill when deciding whether to cache, how to cache, or how to debug cache-related behavior in Java backend systems. ## Rules - Do not add cache by default; justify it. - Make cache keys, TTL, and invalidation explicit. - State consistency trade-offs clearly. - Separate read optimization concerns from write correctness concerns. ## Workflow 1. **Confirm the goal** - reduce read latency - reduce database pressure - smooth traffic spikes - reuse expensive computed results 2. **Decide whether cache is needed** - is the underlying operation actually expensive? - is the data hot enough to benefit? - is the correctness risk acceptable? 3. **Define the cache key strategy** - key naming format - tenant/user/environment scoping if needed - versioning strategy for future key evolution 4. **Define the value and TTL** - full object vs partial projection - TTL length and why it is appropriate - whether null/empty results should be cached 5. **Define invalidation/update behavior** - delete-on-write - write-through - delayed rebuild - background refresh 6. **Review failure modes** - cache penetration - cache breakdown - cache avalanche - stale reads - double-write inconsistency 7. **Define observability** - hit rate - miss rate - rebuild frequency - latency impact - error paths when Redis is unavailable ## Output format 1. Caching goal 2. Whether cache is justified 3. Key and value design 4. TTL and invalidation strategy 5. Consistency trade-offs 6. Failure-mode handling 7. Monitoring and verification ## Common reminders - Explicitly discuss cache penetration, breakdown, avalanche, and stale data risks when relevant. - If strong consistency is required, say so and challenge the cache design. - Prefer simple, debuggable cache flows over over-engineered cache patterns.
From cong1ling/pi-java-enterprise, MIT.
More from cong1ling/pi-java-enterprise
- 0.491score
springboot-configuration-troubleshooting
cong1ling
Troubleshoot Spring Boot configuration, profile, bean, and auto-configuration issues.
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
java-code-review
cong1ling
Review Java backend code for layering, correctness, maintainability, and operational safety.
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
java-refactoring
cong1ling
Guide safe, incremental refactoring in Java backend projects.
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
kafka-event-handling
cong1ling
Design and troubleshoot Kafka producer and consumer workflows in enterprise Java services.
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
java-debugging
cong1ling
Troubleshoot Java backend failures through reproduction, evidence, root cause, and verification.
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
java-testing
cong1ling
Design JUnit 5, Mockito, and Spring Boot tests with clear scope and business assertions.
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
mybatis-plus-crud
cong1ling
Guide CRUD and query development with MyBatis-Plus in enterprise Java projects.
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
springboot-api-development
cong1ling
Guide day-to-day Spring Boot API development for enterprise Java backend projects.
SkillCFreshness: C★ 1Claude Code +9 - 0.486score
terminology-guide
cong1ling
Provide consistent Chinese and English terminology for enterprise Java package content.
SkillCFreshness: C★ 1Claude Code +9 - 0.486score
mysql-performance-troubleshooting
cong1ling
Troubleshoot SQL and index performance issues using evidence from schema and execution plans.
SkillCFreshness: C★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- May 7, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/cong1ling/pi-java-enterprise
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from cong1ling
- 0.491score
springboot-configuration-troubleshooting
cong1ling
Troubleshoot Spring Boot configuration, profile, bean, and auto-configuration issues.
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
java-code-review
cong1ling
Review Java backend code for layering, correctness, maintainability, and operational safety.
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
java-refactoring
cong1ling
Guide safe, incremental refactoring in Java backend projects.
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
kafka-event-handling
cong1ling
Design and troubleshoot Kafka producer and consumer workflows in enterprise Java services.
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
java-debugging
cong1ling
Troubleshoot Java backend failures through reproduction, evidence, root cause, and verification.
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
java-testing
cong1ling
Design JUnit 5, Mockito, and Spring Boot tests with clear scope and business assertions.
SkillCFreshness: C★ 1Claude Code +9
Cite this page
redis-cache-design skill. Agent Mart. https://agentmart.dev/skills/cong1ling-redis-cache-design (last updated 2026-10-24)