메소드 | 설명 | |
---|---|---|
__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 ) |
public __construct ( Predis\Cluster\StrategyInterface $strategy = null ) | ||
$strategy | Predis\Cluster\StrategyInterface | Optional cluster strategy. |
public add ( Predis\Connection\NodeConnectionInterface $connection ) | ||
$connection | Predis\Connection\NodeConnectionInterface |
public executeCommand ( Predis\Command\CommandInterface $command ) | ||
$command | Predis\Command\CommandInterface |
public getClusterStrategy ( ) : Predis\Cluster\StrategyInterface | ||
리턴 | Predis\Cluster\StrategyInterface |
public getConnectionByAlias ( string $alias ) : Predis\Connection\NodeConnectionInterface | null | ||
$alias | string | Connection alias. |
리턴 | Predis\Connection\NodeConnectionInterface | null |
public getConnectionByCommand ( Predis\Command\CommandInterface $command ) | ||
$command | Predis\Command\CommandInterface |
public getConnectionByKey ( string $key ) : Predis\Connection\NodeConnectionInterface | ||
$key | string | Key string. |
리턴 | Predis\Connection\NodeConnectionInterface |
public getConnectionBySlot ( $slot ) : Predis\Connection\NodeConnectionInterface | null | ||
리턴 | Predis\Connection\NodeConnectionInterface | null |
public readResponse ( Predis\Command\CommandInterface $command ) | ||
$command | Predis\Command\CommandInterface |
public remove ( Predis\Connection\NodeConnectionInterface $connection ) | ||
$connection | Predis\Connection\NodeConnectionInterface |
public writeRequest ( Predis\Command\CommandInterface $command ) | ||
$command | Predis\Command\CommandInterface |