Skip to content

Ask the HotKV docs

Answers come only from these docs and can be wrong; check the linked pages before you rely on them.

LATENCY RESET

Last updated
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).

An integer: the number of events cleared, in RESP2 and RESP3.

127.0.0.1:6379> LATENCY RESET command
(integer) 1
127.0.0.1:6379> LATENCY RESET
(integer) 1

Same as Redis 7 and Valkey 8.

LATENCY LATEST, CONFIG RESETSTAT