我有两组“set1”和“set2”,只想将“set2”中的元素(未在“set1”中显示)附加到“set1” 我想使用redis的SUNIUON,但它以非常奇怪的顺序返回元素
redis> SADD key1 "a"
(integer) 1
redis> SADD key1 "b"
(integer) 1
redis> SADD key1 "c"
(integer) 1
redis> SADD key2 "c"
(integer) 1
redis> SADD key2 "d"
(integer) 1
redis> SADD key2 "e"
(integer) 1
redis> SUNION key1 key2
1) "b"
2) "c"
3) "d"
4) "a"
5) "e"
redis>