ZDIFF
Returns the difference of sorted-set inputs.
Sorted sets · Example verified
Syntax covered here
ZDIFF numkeys keyThe case declares one input, so all its members are returned; subtraction between different sets is not exercised.
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
> ZADD scores 1 a 2 b
2
# connection: default
> ZDIFF 1 scores
["a","b"]