SLOWLOG LEN
SLOWLOG LEN
- Group
- Server
- Complexity
- O(1)
- Arity
- 2 (exactly, counting the command name)
- HotKV Cloud
- All plans
- On-Premise
- no license needed
SLOWLOG LEN returns how many entries the slow log holds now. It is never
more than slowlog-max-len: once the log is full, each new entry pushes out
the oldest one.
Return value
Section titled “Return value”An integer, in RESP2 and RESP3.
Examples
Section titled “Examples”127.0.0.1:6379> SLOWLOG LEN(integer) 42Compatibility
Section titled “Compatibility”Same as Redis 7 and Valkey 8.
See also
Section titled “See also”Was this page helpful?
Thanks for the feedback.