COMMAND INFO
Syntax
COMMAND INFO command-name
Time complexity: O(1)
ACL categories: @slow, @connection
Returns information about a specific Dragonfly command.
This is a focused variant of COMMAND
that returns details for a single command name.
The reply format matches one entry of the COMMAND
output:
- Name
- Arity
- Flags
- First key
- Last key
- Step
- ACL categories
Return
Array reply: a single-element nested array describing the command, or a null reply if the command does not exist.
Examples
dragonfly> 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) @READ
2) @STRING
3) @FAST
dragonfly> COMMAND INFO UNKNOWN_COMMAND
(nil)
Notes
- Command names are case-insensitive.
- The output schema is stable but may include more fields in future versions.