await redis.zadd("key", 1, "member");
const value = await redis.zincrby("key", 2, "member");
console.log(value); // 3

Arguments

key
string
required
The key of the sorted set.
increment
integer
required
The increment to add to the score.
member
TMember
required
The member to increment.

Response

The new score of member after the increment operation.
await redis.zadd("key", 1, "member");
const value = await redis.zincrby("key", 2, "member");
console.log(value); // 3