Skip to main content
Documentation
API Reference
Search
⌘K
Ask AI
⌘I
Discord
Blog
Twitter
Console
Redis
/
/
SDKs
/
Python
/
Commands
/
Server
DBSIZE
Count the number of keys in the database.
1 min read
Copy as Markdown
Arguments
#
This command has no arguments
Response
#
SCRIPT LOAD
FLUSHALL
Example
redis.dbsize()