DB

Apply for Redis Developer Course Redis Regular Inspection / Technical Support Redis Enterprise Server

Query DB key counts

Usage is db.
You can query the total key count and the count by data type.
From Ent 8.1.0, keys are stored by data type, so key counts by type can be queried quickly.

Example

Command>db
Result>db0:total_keys=802,string=402,list=100,set=100,zset=100,hash=100,module=0,stream=0,expires=2


Syntax

DB

  • Available since Ent 8.1.0.
  • Time complexity is O(1).

<< TOUCH DB DBALL >>

Email 답글이 올라오면 이메일로 알려드리겠습니다.