*Redis latency-reset 命令

*语法

LATENCY RESET [event [event ...]]

LATENCY RESET 命令重置所有或仅某些事件的延迟峰值时间序列。

当不带参数调用时,它会重置所有事件,丢弃当前记录的延迟峰值事件,并重置最大事件时间寄存器。

可以通过提供 event 名称作为参数来重置仅特定的事件。

event 的有效值为: * active-defrag-cycle * aof-fsync-always * aof-stat * aof-rewrite-diff-write * aof-rename * aof-write * aof-write-active-child * aof-write-alone * aof-write-pending-fsync * command * expire-cycle * eviction-cycle * eviction-del * fast-command * fork * rdb-unlink-temp-file

有关更多信息,请参阅 延迟监控框架页面

*返回信息

整数回复: 被重置的事件时间序列数量。