PHP 클래스 Predis\Connection\Cluster\PredisCluster

저자: Daniele Alessandri ([email protected])
상속: implements ClusterInterface, implements IteratorAggregate, implements Countable
파일 보기 프로젝트 열기: nrk/predis

공개 메소드들

메소드 설명
__construct ( Predis\Cluster\StrategyInterface $strategy = null )
add ( Predis\Connection\NodeConnectionInterface $connection )
connect ( )
count ( )
disconnect ( )
executeCommand ( Predis\Command\CommandInterface $command )
getClusterStrategy ( ) : Predis\Cluster\StrategyInterface Returns the underlying command hash strategy used to hash commands by using keys found in their arguments.
getConnectionByAlias ( string $alias ) : Predis\Connection\NodeConnectionInterface | null Returns a connection instance by its alias.
getConnectionByCommand ( Predis\Command\CommandInterface $command )
getConnectionById ( $id )
getConnectionByKey ( string $key ) : Predis\Connection\NodeConnectionInterface Retrieves a connection instance from the cluster using a key.
getConnectionBySlot ( $slot ) : Predis\Connection\NodeConnectionInterface | null Retrieves a connection instance by slot.
getIterator ( )
isConnected ( )
readResponse ( Predis\Command\CommandInterface $command )
remove ( Predis\Connection\NodeConnectionInterface $connection )
writeRequest ( Predis\Command\CommandInterface $command )

메소드 상세

__construct() 공개 메소드

public __construct ( Predis\Cluster\StrategyInterface $strategy = null )
$strategy Predis\Cluster\StrategyInterface Optional cluster strategy.

add() 공개 메소드

public add ( Predis\Connection\NodeConnectionInterface $connection )
$connection Predis\Connection\NodeConnectionInterface

connect() 공개 메소드

public connect ( )

count() 공개 메소드

public count ( )

disconnect() 공개 메소드

public disconnect ( )

executeCommand() 공개 메소드

public executeCommand ( Predis\Command\CommandInterface $command )
$command Predis\Command\CommandInterface

getClusterStrategy() 공개 메소드

Returns the underlying command hash strategy used to hash commands by using keys found in their arguments.
public getClusterStrategy ( ) : Predis\Cluster\StrategyInterface
리턴 Predis\Cluster\StrategyInterface

getConnectionByAlias() 공개 메소드

Returns a connection instance by its alias.
public getConnectionByAlias ( string $alias ) : Predis\Connection\NodeConnectionInterface | null
$alias string Connection alias.
리턴 Predis\Connection\NodeConnectionInterface | null

getConnectionByCommand() 공개 메소드

public getConnectionByCommand ( Predis\Command\CommandInterface $command )
$command Predis\Command\CommandInterface

getConnectionById() 공개 메소드

public getConnectionById ( $id )

getConnectionByKey() 공개 메소드

Retrieves a connection instance from the cluster using a key.
public getConnectionByKey ( string $key ) : Predis\Connection\NodeConnectionInterface
$key string Key string.
리턴 Predis\Connection\NodeConnectionInterface

getConnectionBySlot() 공개 메소드

Retrieves a connection instance by slot.
public getConnectionBySlot ( $slot ) : Predis\Connection\NodeConnectionInterface | null
리턴 Predis\Connection\NodeConnectionInterface | null

getIterator() 공개 메소드

public getIterator ( )

isConnected() 공개 메소드

public isConnected ( )

readResponse() 공개 메소드

public readResponse ( Predis\Command\CommandInterface $command )
$command Predis\Command\CommandInterface

remove() 공개 메소드

public remove ( Predis\Connection\NodeConnectionInterface $connection )
$connection Predis\Connection\NodeConnectionInterface

writeRequest() 공개 메소드

public writeRequest ( Predis\Command\CommandInterface $command )
$command Predis\Command\CommandInterface