SDIFF
Since 1.1.0Sets
Syntax
SDIFF key [key ...]Returns the members of the first set that are in none of the others. A key that does not exist is an empty set.
Reply
- An array of members, in no particular order.
Examples
> SADD x a b c d
(integer) 4
> SADD y c d e
(integer) 3
> SDIFF x y
1) "a"
2) "b"