COMMAND
Counts registered commands or extracts command key arguments.
Server & administration · Example verified
Syntax covered here
COMMAND COUNT | COMMAND GETKEYS command arg [arg ...]The pinned count is 217, and GETKEYS is exercised with MGET. COMMAND INFO fails; command registration does not imply full support for every option.
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
> COMMAND COUNT
217
# connection: default
> COMMAND INFO get
{"error":"ERR unknown subcommand or wrong number of arguments for 'command'"}
# connection: default
> COMMAND GETKEYS MGET one two
["one","two"]