COMMAND COUNT
COMMAND COUNT
- Group
- Server
- Complexity
- O(1)
- Arity
- 2 (exactly, counting the command name)
- HotKV Cloud
- All plans
- On-Premise
- no license needed
COMMAND COUNT returns how many top-level commands the server has, the
number of entries COMMAND returns. Subcommands such as
CONFIG GET are not counted separately.
Return value
Section titled “Return value”An integer, in RESP2 and RESP3.
Examples
Section titled “Examples”127.0.0.1:6379> COMMAND COUNT(integer) 466The number you see depends on your build and license.
Compatibility
Section titled “Compatibility”Same as Redis 7 and Valkey 8. The count includes the commands HotKV adds.
See also
Section titled “See also”Was this page helpful?
Thanks for the feedback.