Redis Hashes Explained

Поделиться
HTML-код
  • Опубликовано: 29 янв 2025

Комментарии • 35

  • @Redheadtama1
    @Redheadtama1 Год назад +8

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

    • @Redisinc
      @Redisinc  Год назад

      Thank you very much! Always appreciate hearing that! - Justin

  • @Naru1243
    @Naru1243 3 года назад +18

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

    • @Redisinc
      @Redisinc  3 года назад

      Wow, thank you so much Naru! Much appreciated! - Justin

  • @effin-e
    @effin-e 7 месяцев назад

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

  • @mohammadballour6504
    @mohammadballour6504 3 месяца назад

    Awesome and funny instructor. Big thanks to him ❤

  • @leandrogonzalez5587
    @leandrogonzalez5587 8 месяцев назад +1

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

  • @AleksandarT10
    @AleksandarT10 7 месяцев назад

    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?

  • @עידובלייכר
    @עידובלייכר 3 года назад +2

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

  • @user-rp9iis1en6h
    @user-rp9iis1en6h 2 года назад

    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?

  • @miracletechteam7918
    @miracletechteam7918 Год назад

    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)

  • @vtchkrcn
    @vtchkrcn 2 года назад

    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?

    • @Redisinc
      @Redisinc  2 года назад +2

      Whoah! Good catch! That was an error. I think we reused some of the command line interface footage after I called HINCRBY at 4:16. It should have been 20 still at 2:23. Sorry about that! - Justin

  • @jimwichen7978
    @jimwichen7978 2 года назад

    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".

    • @Redisinc
      @Redisinc  2 года назад +1

      Looking under the hood of Redis and examining the data structures *under* the Redis data structures could be a good topic for a stream or video! - Justin

  • @brus5
    @brus5 Год назад +1

    Thank you sir!

  • @manjunathbukkapatnam3731
    @manjunathbukkapatnam3731 Год назад

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

    • @Redisinc
      @Redisinc  Год назад

      Hi there - no, in a hash the values are always string types although you can store binary data / JSON encoded data in there etc. To have Redis operate on data like a list, check out the List, Stream and JSON data types.

  • @maximhlinsky6488
    @maximhlinsky6488 3 года назад +3

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

  • @AlexPoma
    @AlexPoma 2 года назад

    Wow, this was an amazing example 👏

    • @Redisinc
      @Redisinc  2 года назад

      Thanks Alex! We keep talking about actually making a Mages & Minotaurs game someday. Maybe we'll make an open source crowd effort? - Justin

  • @tom111_14
    @tom111_14 Год назад

    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

  • @albertoneto1180
    @albertoneto1180 2 года назад +2

    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

    • @Redisinc
      @Redisinc  2 года назад +1

      Hi Alberto! You might want to check out integrating Lua scripts with your Redis server to atomically execute multiple commands. Check out the docs here:
      redis.io/docs/manual/programmability/
      Hope this helps! - Justin

  • @xedumenx
    @xedumenx 3 года назад

    This is awesome!

  • @grjesus9979
    @grjesus9979 Год назад +2

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

    • @Redisinc
      @Redisinc  Год назад +1

      I'd counter by saying that a JSON file is just like a Hash. Hashes have existed before JSON, and as a simple look up table of just keys and associated values, it meets a LOT of needs. This was also released before we launched our JSON capability. Now people are free to pick and choose which data structure works best for them. Hashes can still excel over JSON in a few scenarios due to their flat nature, so care should be given when deciding the best data structure to use.

  • @fernandocristan8339
    @fernandocristan8339 2 года назад

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

    • @Redisinc
      @Redisinc  2 года назад +1

      Thanks, Fernando! I would recommend integrating RediSearch for filtering and searching within hashes. The Redis Om client has made this a pleasure to do.

  • @capnnukasun810
    @capnnukasun810 2 года назад +1

    Nice dice

  • @EmadSaeed
    @EmadSaeed 10 месяцев назад

    thanks

  • @jacques6090
    @jacques6090 3 года назад

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

    • @Redisinc
      @Redisinc  3 года назад

      Thanks for that, we removed audio in future videos.

  • @TheAremoh
    @TheAremoh 2 года назад

    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.

    • @Redisinc
      @Redisinc  2 года назад

      Hi Aremoh, this is a great question to post in our discord, we can definitely help you! discord.com/invite/redis