PHP Класс Predis\Connection\Aggregate\PredisCluster

Автор: Daniele Alessandri ([email protected])
Наследование: implements ClusterInterface, implements IteratorAggregate, implements Countable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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