Redis Sets Explained

Sdílet
Vložit
  • čas přidán 26. 07. 2024
  • Sets are a powerful and mysterious Redis data structure. In this explainer, we’ll introduce you to the most common Set commands, including SADD, SCARD, SISMEMBER, and SINTER. We’ll also show you how to use Redis Sets to build a “who’s online?” widget for an online game.
    Links:
    Redis University → university.redis.com/
    Redis Labs → www.redis.com/
    Redis.io Sets Documentation → redis.io/topics/data-types#sets
    Need a Redis cluster now? Sign up for a free Redis Cloud Essentials account → bit.ly/2wasiCa
    Join our discord server → / discord
  • Věda a technologie

Komentáře • 10

  • @glennedgar5057
    @glennedgar5057 Před 3 lety +6

    I used the Redis Set to do a quick search for using match terms for components in a tree. This technique is called "nested sets" in the literature.

    • @Redisinc
      @Redisinc  Před 3 lety

      Great tip! How did it work out for you?

    • @glennedgar5057
      @glennedgar5057 Před 3 lety +2

      @@Redisinc The search was fast, The search involve starting with all nodes an doing redis set operations to get the remaining nodes.

    • @Redisinc
      @Redisinc  Před 3 lety +1

      Nice! Are you working on any new redis related projects? If you ever run into issues or questions, jump in our discord

    • @glennedgar5057
      @glennedgar5057 Před 3 lety

      @@Redisinc I work at the edge. i use Redis on every project. i use the aof mode on redis. this allows me to use,redis as a database as i have few acid stuff. when i do, i use sqlite or postgesql. i rarely have need for realy long streams. when i do i fall back ti influxdb. My biggest problem with redis is that i am losing the use of redis modules, particularly with the 2.0 versions.
      After my 2018 Redis presentation i am moving my software to containers. My software architecture is essentially microservices. Redis forms the role of both an Event Broker and an enhanced version of Etcd.
      Essentially I am between two worlds. My embedded friends still think in a monolithic single process. My cloud friends say their is no life outside of the cloud.

  • @IsraelSilva-ho8yc
    @IsraelSilva-ho8yc Před 2 lety +1

    Great series guys! Helped me a lot on a project I'm currently working on

    • @Redisinc
      @Redisinc  Před 2 lety

      We're glad to help, Israel! Let us know if you ever want us to cover anything specific. We're always interested in exploring!

  • @mysterOrel7924
    @mysterOrel7924 Před 2 lety +2

    Learning so much here and in a funny way 😂😂 Love you guys. The minator game was the best example for me.

    • @Redisinc
      @Redisinc  Před 2 lety +1

      Thank you! We've been making up use cases for Mages & Minotaurs so much that even WE want to play it!

    • @mysterOrel7924
      @mysterOrel7924 Před 2 lety

      @@Redisinc make it happen some day !!