Class RedisentCluster
Inheritance | RedisentCluster |
---|---|
Subclasses | Resque_RedisCluster |
A generalized Redisent interface for a cluster of Redis servers
Public Methods
Method | Description | Defined By |
---|---|---|
__call() | RedisentCluster | |
__construct() | Creates a Redisent interface to a cluster of Redis servers | RedisentCluster |
to() | Routes a command to a specific Redis server aliased by {$alias}. | RedisentCluster |
Method Details
public void __call ( $name, $args ) | ||
$name | ||
$args |
Creates a Redisent interface to a cluster of Redis servers
public void __construct ( $servers ) | ||
$servers | array | The Redis servers in the cluster. Each server should be in the format array('host' => hostname, 'port' => port) |
Routes a command to a specific Redis server aliased by {$alias}.
public Redisent to ( $alias ) | ||
$alias | string | The alias of the Redis server |
return | Redisent | The Redisent object attached to the Redis server |
---|