Writes the difference between sets to a new key.
redis.zadd("key1", {"a": 1, "b": 2, "c": 3}) redis.zadd("key2", {"c": 3, "d": 4, "e": 5}) # a and b assert redis.zdiffstore("dest", ["key1", "key2"]) == 2
The key to write the difference to.
The keys to compare.
The number of elements in the resulting set.
Was this page helpful?