LATENCY RESET
LATENCY RESET [event [event ...]]
- Group
- Server
- Complexity
- O(N) where N is the number of events
- Arity
- -2 (at least 2 words, counting the command name)
- HotKV Cloud
- All plans
- On-Premise
- no license needed
LATENCY RESET clears the latency monitor’s data. Without arguments it
clears every event. With event names (case-insensitive) it clears only
those. It does not change latency-monitor-threshold, and it does not touch
the per-command data of LATENCY HISTOGRAM
(use CONFIG RESETSTAT for that).
Return value
Section titled “Return value”An integer: the number of events cleared, in RESP2 and RESP3.
Examples
Section titled “Examples”127.0.0.1:6379> LATENCY RESET command(integer) 1127.0.0.1:6379> LATENCY RESET(integer) 1Compatibility
Section titled “Compatibility”Same as Redis 7 and Valkey 8.
See also
Section titled “See also”Was this page helpful?
Thanks for the feedback.