SDIFF
Returns members of the first set that are absent from the second.
Sets · Example verified
Syntax covered here
SDIFF key1 key2With the second key missing, the tested result contains the first set's member.
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
> SDIFF team other
["a"]