Redis Tutorial for Beginners 10 - Redis Sorted Sets

preview_player
Показать описание
ZREVRANGEBYLEX key max min [LIMIT offset count]
Return a range of members in a sorted set, by lexicographical range, ordered from higher to lower strings.
ZRANGEBYSCORE key min max [WITHSCORES] [LIMIT offset count]
Return a range of members in a sorted set, by score
ZRANK key member
Determine the index of a member in a sorted set
ZREM key member [member ...]
Remove one or more members from a sorted set
ZREMRANGEBYLEX key min max
Remove all members in a sorted set between the given lexicographical range
ZREMRANGEBYRANK key start stop
Remove all members in a sorted set within the given indexes
ZREMRANGEBYSCORE key min max
Remove all members in a sorted set within the given scores
ZREVRANGE key start stop [WITHSCORES]
Return a range of members in a sorted set, by index, with scores ordered from high to low
ZREVRANGEBYSCORE key max min [WITHSCORES] [LIMIT offset count]
Return a range of members in a sorted set, by score, with scores ordered from high to low
ZREVRANK key member
Determine the index of a member in a sorted set, with scores ordered from high to low
ZSCORE key member
Get the score associated with the given member in a sorted set
ZUNIONSTORE destination numkeys key [key ...] [WEIGHTS weight [weight ...]] [AGGREGATE SUM|MIN|MAX]
Add multiple sorted sets and store the resulting sorted set in a new key
ZSCAN key cursor [MATCH pattern] [COUNT count]
Incrementally iterate sorted sets elements and associated scores

★★★Top Online Courses From ProgrammingKnowledge ★★★

★★★ Online Courses to learn ★★★

★★★ Follow ★★★

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!
Рекомендации по теме
Комментарии
Автор

Thanks for the tutorial, it's very simple and straight forward. My suggestion would be to use more meaningful databases that resemble more with real-life scenarios. E.g: (student) Name, Age, Grade, Date, etc.

andretenreiro
Автор

this video needs an update afther Redis 5.0

Автор

Completely useless explanation and examples about scores.Completely unclear from the examples given in the tutorial that what is the role of "Score" in sorted set.Have to check official documentation for the explanation. However overall tutorial is not bad.

amansaurabh