SDIFFSTORE
Stores a set difference in a destination key.
Sets · Example verified
Syntax covered here
SDIFFSTORE destination key1 key2The tested second source is missing, and the reported stored count matches the first source's size.
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
> SDIFFSTORE result team other
1