public function pipeline(callable $callback = null)
    {
        $pipeline = $this->client()->pipeline();

        return is_null($callback)
            ? $pipeline
            : tap($pipeline, $callback)->exec();
    }
public function pipeline(callable $callback = null)
    {
        $pipeline = $this->client()->pipeline();

        return is_null($callback)
            ? $pipeline
            : tap($pipeline, $callback)->exec();
    }
public function pipeline ( callable $ callback = null ) { $ pipeline = $ this -> client ( ) -> pipeline ( ) ; return is_null ( $ callback ) ? $ pipeline : tap ( $ pipeline , $ callback ) -> exec ( ) ; }
Execute commands in a pipeline.

@param  callable|null  $callback
@return \Redis|array
Execute commands in a pipeline .