source/Redis/Connection.php
public function sadd($key, $member) {
        try {
            $result = $this->getRedis()->sAdd($key, $member);
            if ($result !== false) {
                return $result;
            }
            throw new ImpossibleValueException();
        } catch (RedisException $ex) {
            throw new ConnectException();
        }
    }
public function sadd($key, $member) {
        try {
            $result = $this->getRedis()->sAdd($key, $member);
            if ($result !== false) {
                return $result;
            }
            throw new ImpossibleValueException();
        } catch (RedisException $ex) {
            throw new ConnectException();
        }
    }
public function sadd ( $ key , $ member ) { try { $ result = $ this -> getRedis ( ) -> sAdd ( $ key , $ member ) ; if ( $ result !== false ) { return $ result ; } throw new ImpossibleValueException ( ) ; } catch ( RedisException $ ex ) { throw new ConnectException ( ) ; } }
Add member to the set
@param string $key key
@param mixed $member set member
@return int count of added members
@throws ConnectException exception on connection to redis instance
Add member to the set