| 输出 | errorstat_XXX:count=NNN |
|---|---|
| 重置 | CONFIG RESETSTAT |
| 版本 | Redis 6.2 起 |
示例
示例
redis-cli INFO errorstats
redis-cli INFO errorstats | Select-String WRONGTYPE错误计数陡增的时间点,通常对应客户端发布或配置变更。
INFO errorstats 按错误前缀统计返回次数(如 ERR、WRONGTYPE、READONLY),能看出客户端到底在踩哪类坑,比单条报错日志更有全局视角。
| 输出 | errorstat_XXX:count=NNN |
|---|---|
| 重置 | CONFIG RESETSTAT |
| 版本 | Redis 6.2 起 |
redis-cli INFO errorstats
redis-cli INFO errorstats | Select-String WRONGTYPE