📦 cachelint — 缓存反模式检测
v1.0.1扫描 Redis/Memcached 配置,智能识别 TTL 设置、缓存失效、雪崩、架构与安全等典型误用,并给出修复建议,提升缓存命中率与系统稳定性。
0· 0·0 当前·0 累计
by @suhteevah
运行时依赖
无特殊依赖
安装命令
点击复制官方npx clawhub@latest install cachelint
镜像加速npx clawhub@latest install cachelint --registry https://cn.longxiaskill.com
技能文档
Caching anti-pattern analyzer for detecting Redis/Memcached misuse and configuration issues.
Features
- Detects Redis/Memcached misuse patterns
- Identifies TTL configuration problems
- Analyzes cache invalidation strategies
- Detects cache stampede risks
- Checks security hygiene in cache configurations
- Reports architecture issues
Usage
cachelint analyze ./src
Configuration
Create .cachelint.yml in your project root:
rules:
- ttl-validation
- invalidation-check
- security-scan
Supported Cache Systems
- Redis
- Memcached
- Custom cache backends (via plugin)