...

Big Data - Redis

Back to Course

Lesson Description


Lession - #1180 Redis Sets


Redis Sets are an unordered assortment of remarkable strings. Remarkable means sets doesn't permit redundancy of information in a key.

In Redis set add, remove, and test for the presence of individuals in O(1>
(steady time no matter what the quantity of components contained inside the Set>
. The greatest length of a rundown is 232 - 1 components (4294967295, multiple billion of components for every set>
.





Example


redis 127.0.0.1:6379> SADD tutorials redis 
(integer>
1 redis 127.0.0.1:6379> SADD tutorials techedhub (integer>
2 redis 127.0.0.1:6379> SADD tutorials sdfh (integer>
3 redis 127.0.0.1:6379> SMEMBERS tutorials 1>
"sdfh" 2>
"techedhub" 3>
"redis"