메소드 | 설명 | |
---|---|---|
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. |
public getCurrent ( ) : Predis\Connection\NodeConnectionInterface | ||
리턴 | Predis\Connection\NodeConnectionInterface |
public getMaster ( ) : Predis\Connection\NodeConnectionInterface | ||
리턴 | Predis\Connection\NodeConnectionInterface |
public getSlaves ( ) : Predis\Connection\NodeConnectionInterface | ||
리턴 | Predis\Connection\NodeConnectionInterface |
public switchToMaster ( ) |
public switchToSlave ( ) |