public function createSlaveClients($name)
{
$slaves = $this->slaves($name);
$workingSlaves = array();
foreach ($slaves as $slave) {
if (!isset($slave[9])) {
throw new CredisException('Can\' retrieve slave status');
}
if (!strstr($slave[9], 's_down') && !strstr($slave[9], 'disconnected')) {
$workingSlaves[] = new Credis_Client($slave[3], $slave[5], $this->_timeout, $this->_persistent, $this->_db, $this->_password);
}
}
return $workingSlaves;
}