Skip to main content

Documentation Index

Fetch the complete documentation index at: https://upstash.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

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