createSlaveClients() public method

Discover the slave nodes automatically and return an array of Credis_Client objects
public createSlaveClients ( string $name ) : Credis_Client[]
$name string
return Credis_Client[]
Esempio n. 1
0
 public function testNonExistingClusterNameWhenCreatingSlaves()
 {
     $this->setExpectedException('CredisException', 'No such master with that name');
     $this->sentinel->createSlaveClients('non-existing-cluster');
 }