SLOWLOG
Inspect or reset the slow-command log.
SLOWLOG GET [count] | LEN | RESET | HELP
Complexity
GET: O(S) fan-out plus O(L log L) to merge. LEN: O(S). RESET: O(S)
Complexity and compatibility are read out of kevy's implementation, not copied from Redis's reference. Several genuinely differ.
Redis compatibility
Differs
the log is per-shard and GET merges across shards by timestamp, so ids are not globally monotonic; every entry's client-addr and client-name are empty strings
See also
BGREWRITEAOFBGSAVECLIENTCLUSTERCOMMANDCONFIGDBSIZEDEBUGFLUSHALLFLUSHDBINFOMEMORYSAVESHUTDOWN