What DB's are in use on my Redis server?

my-redis-server:6379> INFO keyspace
# Keyspace
db0:keys=104708,expires=104707,avg_ttl=46404640
db1:keys=37,expires=36,avg_ttl=27349
db5:keys=16237,expires=16237,avg_ttl=44320952

The keyspace section provides statistics on the main dictionary of each database. The statistics are the number of keys, and the number of keys with an expiration.

For each database, the following line is added:

  • dbXXX: keys=XXX,expires=XXX

see: https://redis.io/commands/INFO