Redis - Server Dbsize Command


Advertisements

Redis DBSIZE command is used to get the number of keys in selected database.

Return Value

Integer reply.

Syntax

Following is the basic syntax of Redis DBSIZE command.

redis 127.0.0.1:6379> DBSIZE

Example

redis 127.0.0.1:6379> DBSIZE  
(integer) 147 
redis_server.htm
Advertisements