SUNIONSTORE

Stores a set union in a destination key.

Sets · Example verified

Syntax covered here

SUNIONSTORE destination key1 key2

The case combines a populated set with a missing input and reports the resulting member count.

Tested example & replies

Requests below run in order against an empty database. Each connection authenticates with the fixture password first. Quoted values are strings; null is a nil reply; arrays preserve RESP order.

# connection: default
> SADD team a
1
# connection: default
> SUNIONSTORE result team other
1