Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
If you have a SUNION, then you have sets, and in sets the values are already unique.
$ redis-cli
127.0.0.1:6379> sadd set1 a b c
(integer) 3
127.0.0.1:6379> sadd set2 b c d
(integer) 3
127.0.0.1:6379> sunion set1 set2
1) "b"
2) "c"
3) "d"
4) "a"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question