union

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

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

adj. The plural of unions

: unions

store

##UK[stɔ:(r)] US[stɔr, stor]

n. Store; storage; warehouse; large amount

v. Storage; (in a computer) storage

Third person singular: stores Plural: stores Present participle: storing Past tense: stored past participle: stored

redis SUNIONSTORE command syntax

Function:This command is similar to the SUNION command, but it saves the results to the destination collection instead of simply returning the result set. If destination already exists, it is overwritten. destination can be the key itself.

Syntax: SUNIONSTORE destination key [key ...]

Available versions: >= 1.0.0

Time complexity: O(N), N is the sum of the number of members of all given sets.

Returns: The number of elements in the result set.

redis SUNIONSTORE command example

redis> SMEMBERS NoSQL
1) "MongoDB"
2) "Redis"
redis> SMEMBERS SQL
1) "sqlite"
2) "MySQL"
redis> SUNIONSTORE db NoSQL SQL
(integer) 4
redis> SMEMBERS db
1) "MySQL"
2) "sqlite"
3) "MongoDB"
4) "Redis"