- Introduction
- Strings
- Lists
- Sets
- Sorted Sets (ZSets)
- SORTED SETS Introduction
- ZADD
- ZINCRBY
- ZRANGE
- ZRANGESTORE 6.2
- ZLS Ent
- ZREVRANGE
- ZRANGEBYSCORE
- ZREVRANGEBYSCORE
- ZRANGEBYLEX
- ZREVRANGEBYLEX
- ZCARD
- ZLEN Ent
- ZCOUNT
- ZLEXCOUNT
- ZRANK
- ZREVRANK
- ZSCORE
- ZMSCORE 6.2
- ZREM
- ZRM Ent
- ZREMRANGEBYRANK
- ZREMRANGEBYSCORE
- ZREMRANGEBYLEX
- ZUNION 6.2
- ZINTER 6.2
- ZDIFF 6.2
- ZUNIONSTORE
- ZINTERSTORE
- ZDIFFSTORE 6.2
- ZSCAN
- ZPOPMIN 5.0
- ZPOPMAX 5.0
- BZPOPMIN 5.0
- BZPOPMAX 5.0
- ZISMEMBER Ent
- ZRANDMEMBER 6.2
- Hashes
- Streams
- Common Keys
- COMMON Introduction
- EXISTS
- UNLINK
- KEYS
- LS Ent
- LL Ent
- RM Ent
- SCAN
- SORT
- RENAME
- RENAMENX
- EXPIRE
- EXPIREAT
- TTL
- PEXPIRE
- PEXPIREAT
- PTTL
- PERSIST
- TYPE
- OBJECT
- RANDOMKEY
- COPY 6.2
- MOVE
- DUMP
- RESTORE
- MIGRATE
- TOUCH
- DB Ent 8.1.0
- DBALL Ent 8.1.0
- ETYPE Ent 8.1.0
- EKEYS Ent 8.1.0
- ELS Ent 8.1.0
- ELL Ent 8.1.0
- ERM Ent 8.1.0
- LOLWUT
- LS(old)
- LL(old)
- Recyclebin New
- Bits
- Pub/Sub
- Lua Script
- HyperLogLog(PF)
- Geo
- Connection
- Redis on Windows
redis commands common db
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
답글이 올라오면 이메일로 알려드리겠습니다.
