Upstash Documentation home page
Search...
⌘K
Ask AI
Discord
Blog
X
Console
Console
Search...
Navigation
Server
DBSIZE
General
Redis
Kafka
Vector
QStash
SDKs
Developer API
Overall
Overview
SDKs
Typescript
Python
upstash-ratelimit
upstash-vector
upstash-redis
Overview
Getting Started
Features
Commands
Overview
Auth
Bitmap
Generic
Hash
Json
List
PubSub
Scripts
Server
DBSIZE
FLUSHALL
FLUSHDB
Set
Sorted Set
String
upstash-qstash
DevOps
Terraform
Pulumi
CLI
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.