PHP Class Predis\Connection\Aggregate\PredisCluster

Author: Daniele Alessandri ([email protected])
Inheritance: implements ClusterInterface, implements IteratorAggregate, implements Countable
Afficher le fichier Open project: tillkruss/redis-object-cache Class Usage Examples

Méthodes publiques

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 )

Method Details

__construct() public méthode

public __construct ( Predis\Cluster\StrategyInterface $strategy = null )
$strategy Predis\Cluster\StrategyInterface Optional cluster strategy.

add() public méthode

public add ( Predis\Connection\NodeConnectionInterface $connection )
$connection Predis\Connection\NodeConnectionInterface

connect() public méthode

public connect ( )

count() public méthode

public count ( )

disconnect() public méthode

public disconnect ( )

executeCommand() public méthode

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

executeCommandOnNodes() public méthode

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.
Résultat array

getClusterStrategy() public méthode

Returns the underlying command hash strategy used to hash commands by using keys found in their arguments.
public getClusterStrategy ( ) : Predis\Cluster\StrategyInterface
Résultat Predis\Cluster\StrategyInterface

getConnection() public méthode

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

getConnectionById() public méthode

public getConnectionById ( $connectionID )

getConnectionByKey() public méthode

Retrieves a connection instance from the cluster using a key.
public getConnectionByKey ( string $key ) : Predis\Connection\NodeConnectionInterface
$key string Key string.
Résultat Predis\Connection\NodeConnectionInterface

getIterator() public méthode

public getIterator ( )

isConnected() public méthode

public isConnected ( )

readResponse() public méthode

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

remove() public méthode

public remove ( Predis\Connection\NodeConnectionInterface $connection )
$connection Predis\Connection\NodeConnectionInterface

removeById() public méthode

Removes a connection instance using its alias or index.
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.

writeRequest() public méthode

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