Class RedisentCluster

InheritanceRedisentCluster
SubclassesResque_RedisCluster

A generalized Redisent interface for a cluster of Redis servers

Public Methods

Hide inherited methods

MethodDescriptionDefined 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

__call() public method

public void __call ( $name, $args )
$name
$args
__construct() public method

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)

to() public method

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