Files
predis/lib/Predis/Pipeline/PipelineExecutorInterface.php
T
2013-12-17 12:59:31 +01:00

34 lines
878 B
PHP

<?php
/*
* This file is part of the Predis package.
*
* (c) Daniele Alessandri <suppakilla@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Predis\Pipeline;
use SplQueue;
use Predis\Connection\ConnectionInterface;
/**
* Defines a strategy to write a list of commands to the network
* and read back their replies.
*
* @author Daniele Alessandri <suppakilla@gmail.com>
*/
interface PipelineExecutorInterface
{
/**
* Writes a list of commands to the network and reads back their replies.
*
* @param ConnectionInterface $connection Connection to Redis.
* @param SplQueue $commands Commands queued for execution.
* @return array
*/
public function execute(ConnectionInterface $connection, SplQueue $commands);
}