SLOWLOG
Inspects or clears the slow-command log.
Server & administration · Example verified
Syntax covered here
SLOWLOG LEN | SLOWLOG GET count | SLOWLOG RESETThe case resets the log, checks its length and retrieves entries; the actual retrieval is empty, so populated entry contents are not verified.
Tested example & replies
Requests below run in order against an empty database. Each connection authenticates with the fixture password first. Quoted values are strings; null is a nil reply; arrays preserve RESP order.
# connection: default
> SLOWLOG RESET
"OK"
# connection: default
> SLOWLOG LEN
0
# connection: default
> SLOWLOG GET 1
[]