Redis Hashes Explained

preview_player
Показать описание
Hashes are one of the most useful Redis data structures. In this explainer, we’ll introduce you to the most common Hash commands, including HSET, HGET, and HINCRBY. We’ll also show you how to use Redis Hashes to model a simple domain object for an imaginary online role-playing game!

Links:

Рекомендации по теме
Комментарии
Автор

And that, ladies and gentleman, is how you make an educational video! Bravo!

Redheadtama
Автор

These videos are so amazingly produced, thank you so much. These deserve so much more attention. q.q

Naru
Автор

This is explained incredibly well! Really, REALLY well. Thank you :)

effin-e
Автор

Is it possible to set an expiration time for each field and not for the key?

leandrogonzalez
Автор

Very nice! Much thanks for this video. amazing content!

עידובלייכר
Автор

Хорошо объяснил. Спсибо. (explained well. Thanks.)

maximhlinsky
Автор

Amazing explanation 🎉🎉🎉

Imagine you want to return field X from a list of players, how can you select them?

Player:1
Player:3
Player:5

How to get values for the players 3 and 5 in one go? To avoid round trips to the db?

Thank you

albertoneto
Автор

you have specified gold of 20 and when running the command of HGETALL it print out 140, i suppose the video was made is different times

tom_
Автор

What's the performance of the Redis Hashes? I want to store several properties in the Hash that I will be updating/removing on a regular basis (every 1 second). Is there any performance impact?

AleksandarT
Автор

Thank you for the video!
I have questions... because HashSlots is 16, 384 so we can only do hset up to 16, 384? (* if no HDel executed)

miracletechteam
Автор

Understood all. But how do people manage to cache query along with its results set. Specifically filter queries/search queries. In a typical scenario, people input some values/conditions in input field, based on that input, system goes to database, finds the records and sent it back to the user, displayed in grid. How this search params and conditions should be stored in redis?

rpiisenh
Автор

The value of the gold is set to 20 during the player 42 init at 2:15. Why the value of the gold is 140 after running hgetall command at 2:23?

vtchkrcn
Автор

Great video. Have you heard of a game called Dungeons and Dragons? It's very good. Will Mages and Minotaurs be playable from the Redis command line? :) I might have to check out RU.

RickHenderson
Автор

Nice explanation!!

Its possible to filter a key with especific value?
All players in level 4 e.g.

Thanks!

fernandocristan
Автор

Every time I was in an interview, the interviewer always asked me about how the Redis Hashes were implemented.
And I said, "I don't know. What I know is how to use them".

jimwichen
Автор

Why use the word hash to name it? It is just like a JSON file.

grjesus
Автор

Is redis field and value could be of List type on python3.9.16 ? Thanks

manjunathbukkapatnam
Автор

I'm doing RU101 now, and in my humble opinion, it would be great if you can turn off the background music.

jacques
Автор

Nice video.
I'm currently using Redis-OM with FastAPI, NO SUCH INDEX using the find method. I'm using the aredis_om module. Any idea why this is happening?

Thank you.

TheAremoh