Complete the code to store the union of sets 'set1' and 'set2' into 'resultSet'.
SUNIONSTORE [1] set1 set2The SUNIONSTORE command stores the union of the given sets into the specified destination key. Here, 'resultSet' is the destination.
Complete the code to store the union of 'usersOnline' and 'usersActive' into 'allUsers'.
SUNIONSTORE [1] usersOnline usersActiveThe destination key 'allUsers' will hold the union of 'usersOnline' and 'usersActive'.
Fix the error in the command to store the union of 'setA' and 'setB' into 'unionSet'.
SUNIONSTORE setA [1] setBThe first argument after SUNIONSTORE must be the destination key. Here, 'unionSet' is the correct destination to store the union.
Fill both blanks to store the union of 'group1' and 'group2' into 'combinedGroup'.
SUNIONSTORE [1] [2] group2
The first blank is the destination key 'combinedGroup'. The second blank is the first source set 'group1'. The command stores the union of 'group1' and 'group2' into 'combinedGroup'.
Fill all three blanks to store the union of 'teamA', 'teamB', and 'teamC' into 'allTeams'.
SUNIONSTORE [1] [2] [3] teamC
The first blank is the destination key 'allTeams'. The second and third blanks are the first two source sets 'teamA' and 'teamB'. The command unions 'teamA', 'teamB', and 'teamC' into 'allTeams'.