In Redis, the ZREMRANGEBYRANK
command enables us to remove all members from a sorted set with a rank between a certain range.
Tag: what is
Redis ZREMRANGEBYSCORE Command Explained
In Redis, the ZREMRANGEBYSCORE
command enables us to remove all members from a sorted set with a score between a certain range.
Redis ZREMRANGEBYLEX Command Explained
In Redis, the ZREMRANGEBYLEX
command enables us to use a lexicographical range to remove members from a sorted set. That is, we can specify that all members between a given lexicographical range are removed.
This relies on all members having the same score (which forces lexicographical ordering).
Continue readingRedis ZREM Command Explained
In Redis, the ZREM
command removes one or more members from the specified sorted set.
Redis ZINCRBY Command Explained
In Redis, the ZINCRBY
command increments the score of a given member in a sorted set.
Redis BZPOPMAX Command Explained
In Redis, the BZPOPMAX
command is the blocking variant of the ZPOPMAX
command.
The BZPOPMAX
command works similar to ZPOPMAX
when any of the sorted sets contain elements. That is, it pops a member with the highest score from the sorted set.
Redis BZPOPMIN Command Explained
In Redis, the BZPOPMIN
command is the blocking variant of the ZPOPMIN
command.
The BZPOPMIN
command works similar to ZPOPMIN
when any of the sorted sets contain elements. That is, it pops a member with the lowest score from the sorted set.
Redis ZPOPMAX Command Explained
In Redis, the ZMPOPMAX
command removes and returns (pops) members with the highest scores from the specified sorted set. By default it pops one member, but we can also specify how many members we want to pop.
Redis ZPOPMIN Command Explained
In Redis, the ZMPOPMIN
command removes and returns (pops) members with the lowest scores from the specified sorted set. By default it pops one member, but we can also specify how many members we want to pop.
Redis BZMPOP Command Explained
In Redis, the BZMPOP
command is the blocking variant of the ZMPOP
command.
The BZMPOP
command works exactly like ZMPOP
when any of the sorted sets contain elements. It also works exactly like ZMPOP
when used inside a MULTI/EXEC
block. That is, it pops one or more elements from the first non-empty sorted set in the provided list of keys.
However, if all of the specified sorted sets are empty, then BZMPOP
will block the connection until another client adds members to one of the keys or until the specified timeout elapses. It’s possible to block the connection indefinitely by using a timeout of zero.