public function pipeline($callback = null)
    {
        $pipe = $this->createPipeline();
        if ($callback === null) {
            return $pipe;
        }
        call_user_func($callback, $pipe);
        return $pipe->execute();
    }
public function pipeline($callback = null)
    {
        $pipe = $this->createPipeline();
        if ($callback === null) {
            return $pipe;
        }
        call_user_func($callback, $pipe);
        return $pipe->execute();
    }
public function pipeline ( $ callback = null ) { $ pipe = $ this -> createPipeline ( ) ; if ( $ callback === null ) { return $ pipe ; } call_user_func ( $ callback , $ pipe ) ; return $ pipe -> execute ( ) ; }
Creates a pipeline, executes the callback which should use
the provided pipeline object as its only argument without
executing it. The pipeline will the be executed and its
results will be returned.

If no callback is specified, the pipeline object will be
returned without being executed.

<code>
$results = $cache->pipeline(function($pipe) {
$pipe->set('id1', 'value1');
$pipe->set('id2', 'value2');
})
</code>

@param callback $callback
@return mixed
Creates a pipeline executes the callback which should use the provided pipeline object as its only argument without executing it . The pipeline will the be executed and its results will be returned .