Back to Redis

COMMAND COUNT

content/commands/command-count.md

latest1.0 KB
Original Source

Returns [Integer reply]({{< relref "/develop/reference/protocol-spec#integers" >}}) of number of total commands in this Redis server.

Examples

{{% redis-cli %}} COMMAND COUNT {{% /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-count-return-info" tab1="RESP2" tab2="RESP3" >}}

Integer reply: the number of commands returned by COMMAND.

-tab-sep-

Integer reply: the number of commands returned by COMMAND.

{{< /multitabs >}}