Closed tomlankhorst closed 5 years ago
SDIFF Returns the members of the set resulting from the difference between the first set and all the successive sets. key1 = {a,b,c,d} key2 = {c} key3 = {a,c,e} SDIFF key1 key2 key3 = {b,d}
SDIFF Returns the members of the set resulting from the difference between the first set and all the successive sets.
key1 = {a,b,c,d} key2 = {c} key3 = {a,c,e} SDIFF key1 key2 key3 = {b,d}
Test:
$redisMock->sadd('key1', 'a', 'b', 'c', 'd'); $redisMock->sadd('key2', 'c'); $redisMock->sadd('key3', 'a', 'c', 'e'); $this->assert ->array($redisMock->sdiff('key1', 'key2', 'key3')) ->isEqualTo(['b', 'd']);
v4.3.0
Test: