Set
SDIFF
Return the difference between sets
Arguments
keysbody*List[str]required
The keys of the sets to perform the difference operation on.
Response
set[str]required
The resulting set.
Example
redis.sadd("set1", "a", "b", "c"); redis.sadd("set2", "c", "d", "e"); assert redis.sdiff("set1", "set2") == {"a", "b"}