Class Resque_RedisCluster
Inheritance | Resque_RedisCluster » RedisentCluster |
---|
Extended Redisent class used by Resque for all communication with redis. Essentially adds namespace support to Redisent.
Public Methods
Method | Description | Defined By |
---|---|---|
__call() | Magic method to handle all function requests and prefix key based operations with the '{self::$defaultNamespace}' key prefix. | Resque_RedisCluster |
__construct() | Creates a Redisent interface to a cluster of Redis servers | RedisentCluster |
prefix() | Set Redis namespace (prefix) default: resque | Resque_RedisCluster |
to() | Routes a command to a specific Redis server aliased by {$alias}. | RedisentCluster |
Method Details
Magic method to handle all function requests and prefix key based operations with the '{self::$defaultNamespace}' key prefix.
public mixed __call ( $name, $args ) | ||
$name | string | The name of the method called. |
$args | array | Array of supplied arguments to the method. |
return | mixed | Return value from Resident::call() based on the command. |
---|
Set Redis namespace (prefix) default: resque
public static void prefix ( $namespace ) | ||
$namespace | string |