芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/public_html/invoicer.pulsehost.co.uk/vendor/predis/RelayAtomic.php
getClient(); $throw = $this->client->getOptions()->exceptions; try { $transaction = $client->multi(); foreach ($commands as $command) { $name = $command->getId(); in_array($name, $connection->atypicalCommands) ? $transaction->{$name}(...$command->getArguments()) : $transaction->rawCommand($name, ...$command->getArguments()); } $responses = $transaction->exec(); if (!is_array($responses)) { return $responses; } foreach ($responses as $key => $response) { if ($response instanceof RelayException) { if ($throw) { throw $response; } $responses[$key] = new Error($response->getMessage()); } } return $responses; } catch (RelayException $ex) { if ($client->getMode() !== $client::ATOMIC) { $client->discard(); } throw new ServerException($ex->getMessage(), $ex->getCode(), $ex); } } }