Skip to content
masterclass Buddy

Upstash · Method

redis.zadd

ZADD adds members with scores to a Redis sorted set or changes scores for existing members. It supports conditions, change counting, and single-member score increments.

Last updated

Syntax

ZADD <key> [NX | XX] [GT | LT] [CH] [INCR] <score> <member> [<score> <member> ...]

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • ZCARD
  • ZCOUNT
  • ZINCRBY
  • ZRANGE
  • ZSCORE

Source: ZADD - Upstash Documentation. Checked 2026-11-03.