const keys = await redis.dbsize();
console.log(keys) // 20

Arguments

This command has no arguments

Response

The number of keys in the database

const keys = await redis.dbsize();
console.log(keys) // 20