PHP Interface Predis\Connection\Replication\ReplicationInterface

Author: Daniele Alessandri ([email protected])
Inheritance: extends Predis\Connection\AggregateConnectionInterface
Afficher le fichier Open project: nrk/predis

Méthodes publiques

Méthode Description
getCurrent ( ) : Predis\Connection\NodeConnectionInterface Returns the connection in use by the replication backend.
getMaster ( ) : Predis\Connection\NodeConnectionInterface Returns the connection to the master server.
getSlaves ( ) : Predis\Connection\NodeConnectionInterface Returns a list of connections to slave servers.
switchToMaster ( ) Switches the internal connection in use to the master server.
switchToSlave ( ) Switches the internal connection in use to a random slave server.

Method Details

getCurrent() public méthode

Returns the connection in use by the replication backend.
public getCurrent ( ) : Predis\Connection\NodeConnectionInterface
Résultat Predis\Connection\NodeConnectionInterface

getMaster() public méthode

Returns the connection to the master server.
public getMaster ( ) : Predis\Connection\NodeConnectionInterface
Résultat Predis\Connection\NodeConnectionInterface

getSlaves() public méthode

Returns a list of connections to slave servers.
public getSlaves ( ) : Predis\Connection\NodeConnectionInterface
Résultat Predis\Connection\NodeConnectionInterface

switchToMaster() public méthode

Switches the internal connection in use to the master server.
public switchToMaster ( )

switchToSlave() public méthode

Switches the internal connection in use to a random slave server.
public switchToSlave ( )