PHP Class Bravo3\Orm\Drivers\Redis\PredisClientFactory

Datei anzeigen Open project: bravo3/orm Class Usage Examples

Public Properties

Property Type Description
$sentinel SentinelMonitor

Public Methods

Method Description
create ( mixed $params = null, mixed $options = null, mixed $sentinel_params = null ) : Client Build and return an instance of Predis Client.

Method Details

create() public static method

If sentinel parameters are specified, a connection to Sentinel would be initialised first and then find master slave configuration to be used for the Client. Note: First connection made to the Sentinel will be persisted and used for all consequent function calls.
public static create ( mixed $params = null, mixed $options = null, mixed $sentinel_params = null ) : Client
$params mixed
$options mixed
$sentinel_params mixed
return Predis\Client

Property Details

$sentinel static_oe public_oe property

static public SentinelMonitor,Bravo3\Orm\Drivers\Redis $sentinel
return SentinelMonitor