Sorted Sets

📄️ BZPOPMAXLearn to use Redis BZPOPMAX command which removes and returns the member with the highest score from one or more sorted sets.

📄️ BZPOPMINLearn to use Redis BZPOPMIN command which removes and returns the member with the smallest score from one or more sorted sets.

📄️ ZADDLearn how to use Redis ZADD command to add a member to a sorted set with a given score.

📄️ ZCARDLearn to use Redis ZCARD command to get the total number of elements in a sorted set.

📄️ ZCOUNTLearn to use Redis ZCOUNT command which counts elements in a sorted set with scores within a given range.

📄️ ZDIFFLearn to use Redis ZDIFF command to compute the difference between two or more sorted sets.

📄️ ZINCRBYLearn to use Redis ZINCRBY to increment the score of a member in a sorted set.

📄️ ZINTERSTORELearn how to use Redis ZINTERSTORE command to intersect multiple sorted sets and store the result.

📄️ ZLEXCOUNTLearn how to use Redis ZLEXCOUNT command to count elements in a sorted set between two given lexicographical values.

📄️ ZMSCORELearn to use Redis ZMSCORE which returns scores for given members in a sorted set.

📄️ ZPOPMAXLearn how to use Redis ZPOPMAX command to remove and return the member with the highest score in a sorted set.

📄️ ZPOPMINLearn how to use Redis ZPOPMIN command to remove and return the member with the lowest score in a sorted set.

📄️ ZRANGELearn to use Redis ZRANGE command to fetch elements in a specific range from a sorted set.

📄️ ZRANGEBYLEXLearn to use Redis ZRANGEBYLEX command to retrieve elements by their lexical range in a sorted set.

📄️ ZRANGEBYSCORELearn how to use Redis ZRANGEBYSCORE which returns elements with scores within a given range in a sorted set.

📄️ ZRANKLearn how to use Redis ZRANK command to determine the index of a member in a sorted set, with scores ordered from low to high.

📄️ ZREMLearn how to use Redis ZREM command to remove members from a sorted set.

📄️ ZREMRANGEBYLEXLearn how to use Redis ZREMRANGEBYLEX command to remove all members in a sorted set between a specified lexicographical range.

📄️ ZREMRANGEBYRANKLearn how to use Redis ZREMRANGEBYRANK command to remove all members in a sorted set within the given indexes.

📄️ ZREMRANGEBYSCORELearn how to use Redis ZREMRANGEBYSCORE command to remove all members in a sorted set within the given scores.

📄️ ZREVRANGELearn how to use Redis ZREVRANGE command to return a range of members in a sorted set, by index, with scores ordered from high to low.

📄️ ZREVRANGEBYLEXLearn how to use Redis ZREVRANGEBYLEX command to return all members of a sorted set between a range of lexicographical order in reverse.

📄️ ZREVRANGEBYSCORELearn how to use Redis ZREVRANGEBYSCORE command to retrieve members of a sorted set by score in descending order.

📄️ ZREVRANKLearn how to use Redis ZREVRANK to determine the index of a member in a sorted set, with scores ordered from high to low.

📄️ ZSCANLearn how to use Redis ZSCAN command to incrementally iterate sorted sets elements and associated scores.

📄️ ZSCORELearn how to use Redis ZSCORE command to get the score associated with the given element in a sorted set.

📄️ ZUNIONLearn how to use Redis ZUNION command to perform a union of multiple sorted sets, getting the sorted set of unique elements.

📄️ ZUNIONSTORELearn how to use Redis ZUNIONSTORE command to apply set operations on sorted sets and store the resulting set in a new key.