Server Dbsize
# Redis Dbsize Command
* (javascript:void(0);)
* (javascript:void(0);)
* (javascript:void(0);)
* (javascript:void(0))
Redis Tutorial
(#)(#)(#)(#)(#)
## Redis Commands
(#)(#)(#)(#)(#)(#)(#)(#)[Redis Pub/Sub](#)(#)(#)(#)(#)(#)(#)
## Redis Advanced Tutorial
(#)(#)(#)(#)(#)(#)(#)(#)
[](#)(#)
(#)[](#)
Deep Dive
Data Management
Networking
Computer Servers
Programming
Scripting Languages
Web Services
Scripting
Development Tools
Computer Science
Search
# Redis Dbsize Command
!(#)(#)
The Redis DBSIZE command is used to return the number of keys in the current database.
### Syntax
The basic syntax of the Redis DBSIZE command is as follows:
redis 127.0.0.1:6379> DBSIZE
### Available Versions
>= 1.0.0
### Return Value
The number of keys in the current database.
### Example
redis 127.0.0.1:6379> DBSIZE (integer) 5 redis 127.0.0.1:6379> SET new_key "hello_moto" # Add a key to test OK redis 127.0.0.1:6379> DBSIZE (integer) 6
!(#)(#)
YouTip