Skip to content
masterclass Buddy

Redis · Command

DBSIZE

DBSIZE returns the number of keys in the currently selected Redis database. It has O(1) time complexity.

Last updated

Since
1.0.0

Syntax

DBSIZE

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

Subscribe
  • FLUSHDB
  • FLUSHALL
  • INFO

Source: DBSIZE | Docs. Checked 2026-11-03.