Upstash Documentation home page
Search...
⌘K
Ask AI
Discord
Blog
Twitter
Console
Console
Search...
Navigation
Server
DBSIZE
Overview
Redis
Vector
QStash
Workflow
Search
Developer API
Overall
Quickstarts
Features
SDKs
Typescript
Python
Overview
Getting Started
Features
Commands
Overview
Auth
Bitmap
Generic
Hash
Json
List
PubSub
Scripts
Server
DBSIZE
FLUSHALL
FLUSHDB
Set
Sorted Set
String
Ratelimit (TS)
Ratelimit (PY)
How To
Integrations
Tutorials
Troubleshooting
Help
Example
Copy
Ask AI
redis.dbsize()
Server
DBSIZE
Count the number of keys in the database.
Example
Copy
Ask AI
redis.dbsize()
Arguments
This command has no arguments
Response
The number of keys in the database
Example
Copy
Ask AI
redis.dbsize()
Was this page helpful?
Yes
No
Suggest edits
Raise issue
SCRIPT LOAD
FLUSHALL
Assistant
Responses are generated using AI and may contain mistakes.