Please note, this is a STATIC archive of website www.w3resource.com from 19 Jul 2022, cach3.com does not collect or store any user information, there is no "phishing" involved.
w3resource

Redis Server: DBSIZE

DBSIZE

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

Syntax:

DBSIZE

Available since

1.0.0.

Return Value

Integer reply.

Return Value Type

Integer

Example: Redis DBSIZE

redis 127.0.0.1:6379> DBSIZE 
(integer) 147

Previous: CONFIG RESETSTAT
Next: DEBUG OBJECT