src/BTR/RedisObjects/RedisSet.php
public function diff($set, ...$sets): array
    {
        array_unshift($sets, $set);
        array_unshift($sets, $this);
        $keys = [];
        foreach ($sets as $key) {
            $keys[] = ($key instanceof self) ? $key->key : $key;
        }

        return $this->unSerializeArray($this->redis->sdiff($keys));
    }
public function diff($set, ...$sets): array
    {
        array_unshift($sets, $set);
        array_unshift($sets, $this);
        $keys = [];
        foreach ($sets as $key) {
            $keys[] = ($key instanceof self) ? $key->key : $key;
        }

        return $this->unSerializeArray($this->redis->sdiff($keys));
    }
public function diff ( $ set , ... $ sets ) : array { array_unshift ( $ sets , $ set ) ; array_unshift ( $ sets , $ this ) ; $ keys = [ ] ; foreach ( $ sets as $ key ) { $ keys [ ] = ( $ key instanceof self ) ? $ key -> key : $ key ; } return $ this -> unSerializeArray ( $ this -> redis -> sdiff ( $ keys ) ) ; }
@param string|self $set First set or key.
@param array<int, string|self> $sets,... More sets or keys. Can be mixed.

@return mixed[] List of members of resulting set.
@param string|self $set First set or key . @param array<int string|self > $sets ... More sets or keys . Can be mixed .