PHP Класс Predis\Connection\Cluster\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 )
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