union

UK[ˈju:niən] US[ˈjunjən]

n. Alliance, alliance; association, union; union, unity

adj. Plural of unions

: unions

redis SUNION command syntax

Function: Returns all members of a set, which is the union of all given sets.

Syntax: SUNION key [key ...]

Description: Non-existent keys are considered empty sets.

Available versions: >= 1.0.0

Time complexity: O(N), N is all members of the given set The sum of the quantities.

Returns: The list of union members.

redis SUNION command example

redis> SMEMBERS songs
1) "Billie Jean"
redis> SMEMBERS my_songs
1) "Believe Me"
redis> SUNION songs my_songs
1) "Billie Jean"
2) "Believe Me"