Property | Type | Description | |
---|---|---|---|
$client |
Method | Description | |
---|---|---|
__construct ( mixed $connection_params = null ) | Create a new Sentinel Monitor. | |
findMasters ( ) : array | Return an array of MASTER servers in the form that can be passed to Predis Client. | |
findSentinels ( string $master_name = 'mymaster' ) : array | Return an array of SENTINEL servers in the form that can be passed to Predis Client. | |
findSlaves ( string $master_name = null ) : array | Return an array of SLAVE servers in the form that can be passed to Predis Client. |
Method | Description | |
---|---|---|
getConnectionParams ( array $sentinel_output, string $alias = null ) : array | null | Return an array of formatted output from Sentinel to be used as Redis connection parameters for the Predis client. | |
validateConnection ( array $host_info ) : boolean | Function returns true if connection to redis host is accessible based on the output received from Sentinel. |
public __construct ( mixed $connection_params = null ) | ||
$connection_params | mixed |
public findMasters ( ) : array | ||
return | array |
public findSentinels ( string $master_name = 'mymaster' ) : array | ||
$master_name | string | |
return | array |
public findSlaves ( string $master_name = null ) : array | ||
$master_name | string | |
return | array |
protected validateConnection ( array $host_info ) : boolean | ||
$host_info | array | |
return | boolean |