filmov
tv
Redis Tutorial for Beginners - 14 | Redis Sorted Sets Data Type

Показать описание
A Redis sorted set is a collection of unique strings (members) ordered by an associated score. When more than one string has the same score, the strings are ordered lexicographically. Some use cases for sorted sets include:
Leaderboards. For example, you can use sorted sets to easily maintain ordered lists of the highest scores in a massive online game.
Rate limiters. In particular, you can use a sorted set to build a sliding-window rate limiter to prevent excessive API requests.
0:00 Intro
0:54 ZADD Command
1:55 ZRANGE Command
2:25 ZRANGE withscores Command
4:20 ZREVRANGE Command
4:40 ZRANGEBYSCORE Command
Leaderboards. For example, you can use sorted sets to easily maintain ordered lists of the highest scores in a massive online game.
Rate limiters. In particular, you can use a sorted set to build a sliding-window rate limiter to prevent excessive API requests.
0:00 Intro
0:54 ZADD Command
1:55 ZRANGE Command
2:25 ZRANGE withscores Command
4:20 ZREVRANGE Command
4:40 ZRANGEBYSCORE Command