Skip to content
masterclass Buddy

Upstash · Method

redis.dbsize

DBSIZE returns the number of keys in the current database. It counts keys of all data types and returns an integer.

Last updated

Syntax

DBSIZE

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • CONFIG SET
  • FLUSHALL
  • FLUSHDB
  • INFO
  • KEYS

Source: DBSIZE - Upstash Documentation. Checked 2026-11-03.