Count the number of keys in the database.
const keys = await redis.dbsize(); console.log(keys) // 20
This command has no arguments
The number of keys in the database
Was this page helpful?