Redis Sets Explained
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
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.
Great tip! How did it work out for you?
@@Redisinc The search was fast, The search involve starting with all nodes an doing redis set operations to get the remaining nodes.
Nice! Are you working on any new redis related projects? If you ever run into issues or questions, jump in our discord
@@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.
Great series guys! Helped me a lot on a project I'm currently working on
We're glad to help, Israel! Let us know if you ever want us to cover anything specific. We're always interested in exploring!
Learning so much here and in a funny way 😂😂 Love you guys. The minator game was the best example for me.
Thank you! We've been making up use cases for Mages & Minotaurs so much that even WE want to play it!
@@Redisinc make it happen some day !!