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