Class Resque_RedisCluster

InheritanceResque_RedisCluster » RedisentCluster

Extended Redisent class used by Resque for all communication with redis. Essentially adds namespace support to Redisent.

Public Methods

Hide inherited methods

MethodDescriptionDefined 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

__call() public method

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.

prefix() public static method

Set Redis namespace (prefix) default: resque

public static void prefix ( $namespace )
$namespace string