Server
DBSIZE
Count the number of keys in the database.
Arguments
This command has no arguments
Response
integerrequired
The number of keys in the database
Example
const keys = await redis.dbsize();console.log(keys) // 20Count the number of keys in the database.
This command has no arguments
The number of keys in the database
const keys = await redis.dbsize();console.log(keys) // 20