Свойство | Тип | Описание | |
---|---|---|---|
$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 |
Метод | Описание | |
---|---|---|
__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 |
Результат |
public addNamespace ( string $string ) : string | ||
$string | string | String to namespace |
Результат | string |
public getNamespace ( ) : string | ||
Результат | string |
public static instance ( ) : |
||
Результат |
public removeNamespace ( string $string ) : string | ||
$string | string | String to de-namespace |
Результат | string |
public setNamespace ( string $namespace ) | ||
$namespace | string | New namespace |
protected $keyCommands |