Redis – Server Dbsize Command

  • Post author:
  • Post category:Redis
  • Post comments:0 Comments

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 

Leave a Reply