Method |
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. |
|