Back to Redis

COMMAND INFO

content/commands/command-info.md

latest1.2 KB
Original Source

Returns [Array reply]({{< relref "/develop/reference/protocol-spec#arrays" >}}) of details about multiple Redis commands.

Same result format as [COMMAND]({{< relref "/commands/command" >}}) except you can specify which commands get returned.

If you request details about non-existing commands, their return position will be nil.

Examples

{{% redis-cli %}} COMMAND INFO get set eval COMMAND INFO foo evalsha config bar {{% /redis-cli %}}

Redis Software and Redis Cloud compatibility

| Redis Software | Redis Cloud | <span style="min-width: 9em; display: table-cell">Notes</span> | |:----------------------|:-----------------|:------| | <span title="Supported">✅ Standard</span> <span title="Supported"><nobr>✅ Active-Active</nobr></span> | <span title="Supported">✅ Standard</span> <span title="Supported"><nobr>✅ Active-Active</nobr></span> | |

Return information

{{< multitabs id="command-info-return-info" tab1="RESP2" tab2="RESP3" >}}

Array reply: a nested list of command details.

-tab-sep-

Array reply: a nested list of command details.

{{< /multitabs >}}