Predis\Response\Iterator\MultiBulk::drop PHP Method

drop() public method

Drop queued elements that have not been read from the connection either by consuming the rest of the multibulk response or quickly by closing the underlying connection.
public drop ( boolean $disconnect = false )
$disconnect boolean Consume the iterator or drop the connection.
    public function drop($disconnect = false)
    {
        if ($disconnect) {
            if ($this->valid()) {
                $this->position = $this->size;
                $this->connection->disconnect();
            }
        } else {
            while ($this->valid()) {
                $this->next();
            }
        }
    }