redis.sadd("set1", "a", "b", "c"); 
redis.sadd("set2", "c", "d", "e"); 

assert redis.sdiff("set1", "set2") == {"a", "b"}

Arguments

keys
*List[str]
required

The keys of the sets to perform the difference operation on.

Response

The resulting set.

redis.sadd("set1", "a", "b", "c"); 
redis.sadd("set2", "c", "d", "e"); 

assert redis.sdiff("set1", "set2") == {"a", "b"}