123456789101112131415161718192021222324252627282930313233 |
- <?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);
- }
|