PHP 인터페이스 Predis\Connection\Replication\ReplicationInterface

저자: Daniele Alessandri ([email protected])
상속: extends Predis\Connection\AggregateConnectionInterface
파일 보기 프로젝트 열기: nrk/predis

공개 메소드들

메소드 설명
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.

메소드 상세

getCurrent() 공개 메소드

Returns the connection in use by the replication backend.
public getCurrent ( ) : Predis\Connection\NodeConnectionInterface
리턴 Predis\Connection\NodeConnectionInterface

getMaster() 공개 메소드

Returns the connection to the master server.
public getMaster ( ) : Predis\Connection\NodeConnectionInterface
리턴 Predis\Connection\NodeConnectionInterface

getSlaves() 공개 메소드

Returns a list of connections to slave servers.
public getSlaves ( ) : Predis\Connection\NodeConnectionInterface
리턴 Predis\Connection\NodeConnectionInterface

switchToMaster() 공개 메소드

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

switchToSlave() 공개 메소드

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