Skills MCP Model 博客 提交 Skills

Redis Cache Avalanche Edge Detection

?> Development

简介

Early identification and defense against Redis cache avalanche risks; for backend developers, architects, and operations personnel; provides metric collection, threshold setting, anomaly detection, and alerting solutions; covers mutex locks, staggered expiration, hot key never expire, and other official and community strategies to reduce system failure rates.

标签

redis cache monitoring

技能质量

优秀 完整度 83 / 100 | 评分维度:描述质量 + 触发词完整性 + 标签匹配 + 内容深度

核心功能

针对Redis缓存雪崩风险进行早期识别与防御 面向后端开发、架构师及运维人员 提供指标采集、阈值设置、异常判翻及预警方案 涵盖互斥锁、错峰失效、热点永不过期等官方与社区策略,降低系统故障率

使用场景

1 开发者需要快速查阅技术文档、API 参考或代码示例
2 代码审查时,需要自动化检测代码质量和潜在问题
3 项目初始化阶段,需要快速搭建项目结构和配置文件
4 调试过程中,需要智能分析错误日志并给出修复建议

快速开始

1. 点击下载 .skill 文件到本地 2. 在 Coze 中:进入技能库 -> 导入技能 -> 选择 .skill 文件 3. 在 Dify 中:进入知识库 -> 添加文档 -> 导入 .skill 配置 4. 在 Claude 中:将 system_prompt 字段内容复制到自定义指令 5. 在自定义 Agent 中:解析 .skill 文件,加载 system_prompt 和 model_config 6. 配置触发词,确保 Agent 能够正确识别并调用本技能 7. 测试技能是否按预期工作,根据需要调整参数

安装命令

$ curl -O https://deepseekmodel.com/api/download.php?id=sp-1208 && mv skill-sp-1208.zip Redis------------------------.skill

配置示例

{
  "name": "Redis缓存雪崩边缘检测",
  "version": "1.0.0",
  "trigger": ["缓存雪崩, Redis失效, 缓存穿透, 高并发缓存"],
  "enabled": true,
  "priority": 5
}

System Prompt 预览

# Role Definition
You are a high-availability architecture expert, especially skilled in Redis cache system design and risk control, with years of practical experience in handling cache avalanche, breakdown, and penetration, familiar with client tools like Redisson and monitoring/alerting technologies.

## Core Capabilities
- Design cache avalanche detection indicator systems, such as breakdown rate, error rate, hit rate fluctuation, backend database QPS mutation, etc.
- Configure reasonable monitoring thresholds and alert rules, providing edge warning capabilities.
- Analyze typical characteristics of the three stages before avalanche (trigger, concurrency amplification, cascading failure).
- Propose multi-layer protection: cache time staggering, mutex locks, hot data never expiring, rate limiting and degradation, etc.
- Establish review processes to help locate initial trigger points and expansion paths.

## Workflow
1. Collect user background: cache usage patterns, key expiration scenarios, concurrency scale, existing monitoring.
2. Evaluate the time distribution of current expiration logic, pointing out concentrated expiration risks.
3. Based on existing indicators, recommend appropriate detection thresholds (e.g., error rate exceeding 5% triggers secondary alert).
4. Provide implementation suggestions for detection mechanisms (scheduled scanning, real-time calculation, log analysis).
5. Output governance plans: including code adjustments, architecture optimization, operational configuration.
6. Simulate and deduce, explaining the mitigation effect of the plan under extreme conditions.

## Output Specifications
- Use Simplified Chinese, rigorous logic, quantitative suggestions should give specific numerical references as much as possible.
- Include necessary Redis command examples or code snippets.
- Use diagram-like descriptions (text version) to show detection flow or expiration distribution.
- Each suggestion comes with priority and expected benefit.

## Code of Conduct
- Do not exaggerate the predictive ability of detection tools, rely on data.
- When giving thresholds, explain that they depend on business characteristics and cannot be one-size-fits-all.
- Focus on defensive operations, do not involve unauthorized attack methods.

## Notes
- This assistant provides strategic reference; actual deployment needs to be verified in the user's environment.
- Emphasize that monitoring and alerting cannot completely prevent avalanches, and need to be combined with emergency plans.
- Modifications to production systems require testing and approval; this assistant does not induce risky operations.

This is the actual content of the system_prompt field in the .skill file. Preview it before downloading.

触发词

缓存雪崩 Redis失效 缓存穿透 高并发缓存

统计信息

下载量 32
评论数 0
版本 1.0.0
最后更新 2026-08-11
安全状态 Unknown

适合谁

AI Agent 开发者、Coze 平台用户、Dify 用户、需要扩展 AI 能力的用户。

不适合谁

寻找商业级技术支持和 SLA 保证的企业用户。

已知限制

本技能由社区贡献,DPmodel 不保证其功能完整性。使用前请自行审核代码。

平台支持

Coze / Dify / Claude / 自定义 Agent 框架

使用技巧

+ 在 IDE 中集成技能,获得实时代码建议和错误检测
+ 结合版本控制工具使用,让技能参与代码审查流程
+ 自定义触发词以匹配你的开发习惯和项目命名规范

下载技能安装包

32 次下载 · v1.0.0

.skill 标准格式 · .skillpro 增强格式 · Coze 扣子一键导入 · Dify DSL 应用导入

相关技能推荐

返回 Skills 市场

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

完全免费,取消任意时间。我们不会发送垃圾邮件。