Méthode | Description | |
---|---|---|
__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 ) |
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 executeCommandOnNodes ( Predis\Command\CommandInterface $command ) : array | ||
$command | Predis\Command\CommandInterface | A Redis command. |
Résultat | array |
public getClusterStrategy ( ) : Predis\Cluster\StrategyInterface | ||
Résultat | Predis\Cluster\StrategyInterface |
public getConnection ( Predis\Command\CommandInterface $command ) | ||
$command | Predis\Command\CommandInterface |
public getConnectionByKey ( string $key ) : Predis\Connection\NodeConnectionInterface | ||
$key | string | Key string. |
Résultat | Predis\Connection\NodeConnectionInterface |
public readResponse ( Predis\Command\CommandInterface $command ) | ||
$command | Predis\Command\CommandInterface |
public remove ( Predis\Connection\NodeConnectionInterface $connection ) | ||
$connection | Predis\Connection\NodeConnectionInterface |
public removeById ( string $connectionID ) : boolean | ||
$connectionID | string | Alias or index of a connection. |
Résultat | boolean | Returns true if the connection was in the pool. |
public writeRequest ( Predis\Command\CommandInterface $command ) | ||
$command | Predis\Command\CommandInterface |