What's new in Valkey 9.0? Discover new features and improvements. Read the announcement.

COMMAND COUNT

Returns a count of commands.

Usage
COMMAND COUNT
Complexity
O(1)
Since
2.8.13
ACL Categories
@connection, @slow
Command flags
LOADING, STALE, SENTINEL

Returns the total number of commands in this Valkey server.

Examples

127.0.0.1:6379> COMMAND COUNT
(integer) 241

Replies

RESP2

Integer reply: the number of commands returned by COMMAND.

RESP3

Integer reply: the number of commands returned by COMMAND.