mirror of
https://github.com/predis/predis.git
synced 2026-08-31 12:43:31 +00:00
Made ConnectionCluster::getConnection public, so client code can check to which server a command would be sent.
This commit is contained in:
+1
-1
@@ -906,7 +906,7 @@ class ConnectionCluster implements IConnection, \IteratorAggregate {
|
||||
$this->_ring->add($connection);
|
||||
}
|
||||
|
||||
private function getConnection(Command $command) {
|
||||
public function getConnection(Command $command) {
|
||||
if ($command->canBeHashed() === false) {
|
||||
throw new ClientException(
|
||||
sprintf("Cannot send '%s' commands to a cluster of connections.", $command->getCommandId())
|
||||
|
||||
Reference in New Issue
Block a user