ZUNIONSTORE
weights option
Initial
Play
ZUNIONSTORE dest_key numkeys src_key [src_key ...]
[WEIGHTS weight [weight ...]]
[AGGREGATE SUM|MIN|MAX]
ZUNIONSTORE dest_key 2 myset1 myset2
weights 2 3
myset1
myset2
dest_key
1
A
2
B
3
C
4
B
5
C
6
D
A
B
D
C
sum(4,12)
sum(6,15)