Redis Sorted Sets Explained

  Рет қаралды 43,639

Redis

Redis

Күн бұрын

Sorted Sets are a tool every developer should know. In this explainer, we’ll introduce you to the most common Sorted Set commands, including ZADD, ZINCRBY, ZRANGE, and ZRANK. We’ll also show you how to use Redis Sorted Sets to maintain an online gaming leaderboard!
Links:
Redis University → university.red...
Redis Labs → www.redislabs....
Redis.io Sorted Set Documentation → redis.io/topic...
Need a Redis cluster now? Sign up for a free Redis Cloud Essentials account → bit.ly/2wasiCa
Join our discord server → / discord

Пікірлер: 23
@Redisinc
@Redisinc 3 жыл бұрын
Hello, there is a slight error in one part of the video. ZREVRANGE will traverse a sorted set from highest to lowest score values. The output we see at 3:53 is incorrect. The list should be inverted or in 'descending' order. Sorry about that! - Justin
@candrabeqx
@candrabeqx Жыл бұрын
wait, but the output at 3:53 is sorted in descending order which is correct.
@J-wd2cx
@J-wd2cx Жыл бұрын
I think he meant here 3:23
@osifoanosike6565
@osifoanosike6565 Жыл бұрын
@@J-wd2cx that also confused me for a bit, but I realized that the difference was denoted using the direction of the arrow.
@yelgabs
@yelgabs 4 ай бұрын
how come you set WITHSCORES in the command but it’s only the IDs are showing?
@nikitapodshivalov3573
@nikitapodshivalov3573 2 жыл бұрын
You should promote the editor of this video. It is a masterpiece ;)
@FuckUsNew
@FuckUsNew 2 жыл бұрын
Wow, the best tutorial made by creator I've ever seen!
@azizutkuozdemir
@azizutkuozdemir 2 жыл бұрын
I like almost everything about redis and the people working for redis.
@John-t1d
@John-t1d 11 күн бұрын
Can you explain in what scenarios you would use redis vs a traditional database system for score tracking? I imagine that in a real time scenario or where scores are frequently updated that Redis would be preferred. But if we are not dealing with live data then something like MySQL would be sufficient?
@as5547
@as5547 Жыл бұрын
I am a newbie, how did you paste the list of 11 values with the correct tabs, and the command did not execute after the first set of values. Thanks
@Redisinc
@Redisinc Жыл бұрын
That was a bit of movie magic. We use a script to "type" for us so it doesn't show typos. In truth it was just a very long string with a lot of spaces.
@larryquantz195
@larryquantz195 2 жыл бұрын
This is a really well-made video and the technical explanations are terrific. And I'm not even into Dungeons and Dragons or Elden Ring!
@Redisinc
@Redisinc 2 жыл бұрын
Thanks! We're all a bit nerdy on the DevRel team so this came naturally to us. - Justin
@KanikaDawar1997
@KanikaDawar1997 Жыл бұрын
How can I add high precision values, like double in a sorted set?
@Redisinc
@Redisinc Жыл бұрын
You can add doubles as a score to members in a Redis Sorted Set.
@vanshchopra24
@vanshchopra24 9 ай бұрын
Thanks for the video!!
@ahxel
@ahxel Жыл бұрын
now I wanna play Mages and Minotaurs! seriously, though, great tutorial video.
@Naru1243
@Naru1243 2 жыл бұрын
These Videos really deserve more views. q.q
@bovineox1111
@bovineox1111 Жыл бұрын
You had me at mages and minotaurs
@Redisinc
@Redisinc Жыл бұрын
Another proud warrior joins our merry band!
@glennedgar5057
@glennedgar5057 3 жыл бұрын
good set of videos. a question about last video on hashes. Redis does not have a native facility to handle an array of hash tables. there are adhoc mechanisms and a module dbx. what is the semi official way to handle an array of redis hash tables?... Thanks
@Redisinc
@Redisinc 3 жыл бұрын
Great question! There is no real way to store an array of hash data types in open source Redis. If you have multiple hashes within an array on your client and would like to store them in a similar fashion within Redis, you could have all Redis key names store a list name within their value, like ':' where array_name is the name of the array of hashes and the index is the position of the hash. You can then run the SCAN command to pull all hashes that match your array_name value. This can get pretty costly though; it might be worth checking out the RedisJSON module. You can store an array of JSON objects in Redis without a problem.
@enimozhianv2880
@enimozhianv2880 2 жыл бұрын
@@Redisinc Facing performance issues when using scan command. Could you please help how to overcome it
Redis Sets Explained
5:24
Redis
Рет қаралды 23 М.
Redis Hashes Explained
6:28
Redis
Рет қаралды 45 М.
The joker favorite#joker  #shorts
00:15
Untitled Joker
Рет қаралды 30 МЛН
Which One Is The Best - From Small To Giant #katebrush #shorts
00:17
pumpkins #shorts
00:39
Mr DegrEE
Рет қаралды 50 МЛН
Dear Game Developers, Stop Messing This Up!
22:19
Jonas Tyroller
Рет қаралды 716 М.
Python Hash Sets Explained & Demonstrated - Computerphile
18:39
Computerphile
Рет қаралды 117 М.
why rust libraries may never exist.
7:26
Low Level
Рет қаралды 258 М.
What Happens When Redis Runs Out of Memory
14:03
Redis
Рет қаралды 20 М.
RedisJSON Explained
7:09
Redis
Рет қаралды 23 М.
What Makes a Game Feel Mysterious?
29:37
Game Maker's Toolkit
Рет қаралды 264 М.
Redis Tutorial for Beginners #10 - Sorted Sets
11:30
Net Ninja
Рет қаралды 10 М.
Cracking Enigma in 2021 - Computerphile
21:20
Computerphile
Рет қаралды 2,5 МЛН
Redis Lists Explained
4:32
Redis
Рет қаралды 18 М.
The cloud is over-engineered and overpriced (no music)
14:39
Tom Delalande
Рет қаралды 621 М.
The joker favorite#joker  #shorts
00:15
Untitled Joker
Рет қаралды 30 МЛН