Class Resque_Redis

InheritanceResque_Redis » Redisent

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

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$host string Redisent
$port integer 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_Redis
__construct() Creates a Redisent connection to the Redis server on host {@link $host} and port {@link $port}. Redisent
__destruct() Redisent
establishConnection() Redisent
prefix() Set Redis namespace (prefix) default: resque Resque_Redis

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