COMMAND
Since 1.1.0Server
Syntax
COMMANDReturns every command, each as an array: its name, its arity (a negative number is a minimum), its flags, the positions of its first and last key and the step between them, and its ACL categories. A command whose keys depend on its arguments has the movablekeys flag. Cluster clients route by this.
Examples
> COMMAND INFO GET
1) 1) "get"
2) (integer) 2
3) 1) readonly
2) fast
4) (integer) 1
5) (integer) 1
6) (integer) 1
7) 1) "@fast"
2) "@read"
3) "@string"
...
Subcommands
- COMMAND COUNT: Returns the number of commands.
- COMMAND DOCS: Returns an empty array in KiviDB 1.1, so that clients that ask, such as redis-cli, still connect.
- COMMAND GETKEYS: Returns the keys a command would use, given its arguments.
- COMMAND GETKEYSANDFLAGS: Returns the keys a command would use, each with how it uses it.
- COMMAND HELP: Lists the COMMAND subcommands and what each does.
- COMMAND INFO: COMMAND's entries for the commands named, nil for a name that is not a command, or for every command.
- COMMAND LIST: Returns the names of every command, or of those matching a FILTERBY: PATTERN pattern, ACLCAT category, or MODULE module (always empty).