SLOWLOG RESET
SLOWLOG RESET
- Group
- Server
- Complexity
- O(N) where N is the number of entries
- Arity
- 2 (exactly, counting the command name)
- HotKV Cloud
- All plans
- On-Premise
- no license needed
SLOWLOG RESET deletes every entry in the slow log. Entry ids are not
reset: the next entry logged gets the next id, so tools that track the last
id they read do not miss or repeat entries.
Return value
Section titled “Return value”Simple string OK in RESP2 and RESP3.
Examples
Section titled “Examples”127.0.0.1:6379> SLOWLOG RESETOK127.0.0.1:6379> SLOWLOG LEN(integer) 0Compatibility
Section titled “Compatibility”Same as Redis 7 and Valkey 8.
See also
Section titled “See also”Was this page helpful?
Thanks for the feedback.