Property | Type | Description | |
---|---|---|---|
$config | Default configuration | ||
$instance | Redis instance | ||
$keyCommands | List of all commands in Redis that supply a key as their first argument. Used to prefix keys with the Resque namespace. | ||
$namespace | Redis namespace | ||
$redis | The Predis instance |
Method | Description | |
---|---|---|
__call ( string $method, array $parameters ) : mixed | Dynamically pass calls to the Predis. | |
__construct ( array $config = [] ) : |
Establish a Redis connection. | |
addNamespace ( string $string ) : string | Add Redis namespace to a string | |
getNamespace ( ) : string | Get Redis namespace | |
instance ( ) : |
Establish a Redis connection | |
removeNamespace ( string $string ) : string | Remove Redis namespace from string | |
setConfig ( array $config ) | Set the Redis config | |
setNamespace ( string $namespace ) | Set Redis namespace |
public __construct ( array $config = [] ) : |
||
$config | array | Array of configuration settings |
return |
public addNamespace ( string $string ) : string | ||
$string | string | String to namespace |
return | string |
public static instance ( ) : |
||
return |
public removeNamespace ( string $string ) : string | ||
$string | string | String to de-namespace |
return | string |
public setNamespace ( string $namespace ) | ||
$namespace | string | New namespace |
protected $keyCommands |