> ## 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.

# Sorted Set commands

> Commands for storing and manipulating scored collections.

> [card] [BZMPOP](https://upstash.com/docs/redis/commands/sorted-set/bzmpop)
>
> Blocking pop from sorted sets

> [card] [BZPOPMAX](https://upstash.com/docs/redis/commands/sorted-set/bzpopmax)
>
> Blocking pop max score member

> [card] [BZPOPMIN](https://upstash.com/docs/redis/commands/sorted-set/bzpopmin)
>
> Blocking pop min score member

> [card] [ZADD](https://upstash.com/docs/redis/commands/sorted-set/zadd)
>
> Add members with scores

> [card] [ZCARD](https://upstash.com/docs/redis/commands/sorted-set/zcard)
>
> Get sorted set cardinality

> [card] [ZCOUNT](https://upstash.com/docs/redis/commands/sorted-set/zcount)
>
> Count members in score range

> [card] [ZDIFF](https://upstash.com/docs/redis/commands/sorted-set/zdiff)
>
> Get sorted set difference

> [card] [ZDIFFSTORE](https://upstash.com/docs/redis/commands/sorted-set/zdiffstore)
>
> Store sorted set difference

> [card] [ZINCRBY](https://upstash.com/docs/redis/commands/sorted-set/zincrby)
>
> Increment member's score

> [card] [ZINTER](https://upstash.com/docs/redis/commands/sorted-set/zinter)
>
> Get sorted set intersection

> [card] [ZINTERCARD](https://upstash.com/docs/redis/commands/sorted-set/zintercard)
>
> Get intersection cardinality

> [card] [ZINTERSTORE](https://upstash.com/docs/redis/commands/sorted-set/zinterstore)
>
> Store sorted set intersection

> [card] [ZLEXCOUNT](https://upstash.com/docs/redis/commands/sorted-set/zlexcount)
>
> Count members in lex range

> [card] [ZMPOP](https://upstash.com/docs/redis/commands/sorted-set/zmpop)
>
> Pop from the first non-empty sorted set

> [card] [ZMSCORE](https://upstash.com/docs/redis/commands/sorted-set/zmscore)
>
> Get scores of multiple members

> [card] [ZPOPMAX](https://upstash.com/docs/redis/commands/sorted-set/zpopmax)
>
> Pop members with highest scores

> [card] [ZPOPMIN](https://upstash.com/docs/redis/commands/sorted-set/zpopmin)
>
> Pop members with lowest scores

> [card] [ZRANDMEMBER](https://upstash.com/docs/redis/commands/sorted-set/zrandmember)
>
> Get random members

> [card] [ZRANGE](https://upstash.com/docs/redis/commands/sorted-set/zrange)
>
> Get members by index, score, or lex range

> [card] [ZRANGEBYLEX](https://upstash.com/docs/redis/commands/sorted-set/zrangebylex)
>
> Get members by lex range

> [card] [ZRANGEBYSCORE](https://upstash.com/docs/redis/commands/sorted-set/zrangebyscore)
>
> Get members by score range

> [card] [ZRANGESTORE](https://upstash.com/docs/redis/commands/sorted-set/zrangestore)
>
> Store the result of a range query

> [card] [ZRANK](https://upstash.com/docs/redis/commands/sorted-set/zrank)
>
> Get member's rank

> [card] [ZREM](https://upstash.com/docs/redis/commands/sorted-set/zrem)
>
> Remove members

> [card] [ZREMRANGEBYLEX](https://upstash.com/docs/redis/commands/sorted-set/zremrangebylex)
>
> Remove members by lex range

> [card] [ZREMRANGEBYRANK](https://upstash.com/docs/redis/commands/sorted-set/zremrangebyrank)
>
> Remove members by rank range

> [card] [ZREMRANGEBYSCORE](https://upstash.com/docs/redis/commands/sorted-set/zremrangebyscore)
>
> Remove members by score range

> [card] [ZREVRANGE](https://upstash.com/docs/redis/commands/sorted-set/zrevrange)
>
> Get members in reverse order

> [card] [ZREVRANGEBYLEX](https://upstash.com/docs/redis/commands/sorted-set/zrevrangebylex)
>
> Reverse lex range query

> [card] [ZREVRANGEBYSCORE](https://upstash.com/docs/redis/commands/sorted-set/zrevrangebyscore)
>
> Reverse score range query

> [card] [ZREVRANK](https://upstash.com/docs/redis/commands/sorted-set/zrevrank)
>
> Get member's reverse rank

> [card] [ZSCAN](https://upstash.com/docs/redis/commands/sorted-set/zscan)
>
> Incrementally iterate sorted set

> [card] [ZSCORE](https://upstash.com/docs/redis/commands/sorted-set/zscore)
>
> Get member's score

> [card] [ZUNION](https://upstash.com/docs/redis/commands/sorted-set/zunion)
>
> Get sorted set union

> [card] [ZUNIONSTORE](https://upstash.com/docs/redis/commands/sorted-set/zunionstore)
>
> Store sorted set union


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.