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