source/Redis/Connection.php
public function setbit($key, $offset, $value) {
        $offset = (int) $offset;
        $value = (int) (bool) $value;
        try {
            $result = $this->getRedis()->setBit($key, $offset, $value);
            if ($result !== false) {
                return $result;
            }
            throw new ImpossibleValueException();
        } catch (RedisException $ex) {
            throw new ConnectException();
        }
    }
public function setbit($key, $offset, $value) {
        $offset = (int) $offset;
        $value = (int) (bool) $value;
        try {
            $result = $this->getRedis()->setBit($key, $offset, $value);
            if ($result !== false) {
                return $result;
            }
            throw new ImpossibleValueException();
        } catch (RedisException $ex) {
            throw new ConnectException();
        }
    }
public function setbit ( $ key , $ offset , $ value ) { $ offset = ( int ) $ offset ; $ value = ( int ) ( bool ) $ value ; try { $ result = $ this -> getRedis ( ) -> setBit ( $ key , $ offset , $ value ) ; if ( $ result !== false ) { return $ result ; } throw new ImpossibleValueException ( ) ; } catch ( RedisException $ ex ) { throw new ConnectException ( ) ; } }
Set key bit
@param string $key key
@param int $offset bit offset
@param int $value bit value. May be 0 or 1
@return int bit value before operation complete
@throws ConnectException exception on connection to redis instance
Set key bit