redis.zadd("key1", {"a": 1, "b": 2, "c": 3}) redis.zadd("key2", {"c": 3, "d": 4, "e": 5}) result = redis.zunionstore(["key1", "key2"]) assert result == 5
Writes the union between sets to a new key.
Was this page helpful?