PHP 클래스 Predis\Connection\Aggregate\PredisCluster

저자: Daniele Alessandri ([email protected])
상속: implements ClusterInterface, implements IteratorAggregate, implements Countable
파일 보기 프로젝트 열기: tillkruss/redis-object-cache 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Predis\Cluster\StrategyInterface $strategy = null )
add ( Predis\Connection\NodeConnectionInterface $connection )
connect ( )
count ( )
disconnect ( )
executeCommand ( Predis\Command\CommandInterface $command )
executeCommandOnNodes ( Predis\Command\CommandInterface $command ) : array Executes the specified Redis command on all the nodes of a cluster.
getClusterStrategy ( ) : Predis\Cluster\StrategyInterface Returns the underlying command hash strategy used to hash commands by using keys found in their arguments.
getConnection ( Predis\Command\CommandInterface $command )
getConnectionById ( $connectionID )
getConnectionByKey ( string $key ) : Predis\Connection\NodeConnectionInterface Retrieves a connection instance from the cluster using a key.
getIterator ( )
isConnected ( )
readResponse ( Predis\Command\CommandInterface $command )
remove ( Predis\Connection\NodeConnectionInterface $connection )
removeById ( string $connectionID ) : boolean Removes a connection instance using its alias or index.
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

executeCommandOnNodes() 공개 메소드

Executes the specified Redis command on all the nodes of a cluster.
public executeCommandOnNodes ( Predis\Command\CommandInterface $command ) : array
$command Predis\Command\CommandInterface A Redis command.
리턴 array

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

getConnection() 공개 메소드

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

getConnectionById() 공개 메소드

public getConnectionById ( $connectionID )

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

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

removeById() 공개 메소드

Removes a connection instance using its alias or index.
public removeById ( string $connectionID ) : boolean
$connectionID string Alias or index of a connection.
리턴 boolean Returns true if the connection was in the pool.

writeRequest() 공개 메소드

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