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
DBSIZEIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
FLUSHDBFLUSHALLINFO