mirror of
https://github.com/predis/predis.git
synced 2026-10-11 14:27:44 +00:00
17 lines
363 B
PHP
17 lines
363 B
PHP
<?php
|
|
|
|
namespace Predis\Pipeline;
|
|
|
|
use Predis\Network\IConnection;
|
|
|
|
class FireAndForgetExecutor implements IPipelineExecutor {
|
|
public function execute(IConnection $connection, &$commands) {
|
|
foreach ($commands as $command) {
|
|
$connection->writeCommand($command);
|
|
}
|
|
$connection->disconnect();
|
|
|
|
return array();
|
|
}
|
|
}
|