PHP 클래스 Resque\Redis

저자: Michael Haynes ([email protected])
파일 보기 프로젝트 열기: mjphaynes/php-resque 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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 = [] ) : Redis Establish a Redis connection.
addNamespace ( string $string ) : string Add Redis namespace to a string
getNamespace ( ) : string Get Redis namespace
instance ( ) : Redis 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

메소드 상세

__call() 공개 메소드

Dynamically pass calls to the Predis.
public __call ( string $method, array $parameters ) : mixed
$method string Method to call
$parameters array Arguments to send to method
리턴 mixed

__construct() 공개 메소드

Establish a Redis connection.
public __construct ( array $config = [] ) : Redis
$config array Array of configuration settings
리턴 Redis

addNamespace() 공개 메소드

Add Redis namespace to a string
public addNamespace ( string $string ) : string
$string string String to namespace
리턴 string

getNamespace() 공개 메소드

Get Redis namespace
public getNamespace ( ) : string
리턴 string

instance() 공개 정적인 메소드

Establish a Redis connection
public static instance ( ) : Redis
리턴 Redis

removeNamespace() 공개 메소드

Remove Redis namespace from string
public removeNamespace ( string $string ) : string
$string string String to de-namespace
리턴 string

setConfig() 공개 정적인 메소드

Set the Redis config
public static setConfig ( array $config )
$config array Array of configuration settings

setNamespace() 공개 메소드

Set Redis namespace
public setNamespace ( string $namespace )
$namespace string New namespace

프로퍼티 상세

$config 보호되어 있는 정적으로 프로퍼티

Default configuration
protected static $config

$instance 보호되어 있는 정적으로 프로퍼티

Redis instance
protected static $instance

$keyCommands 보호되어 있는 프로퍼티

List of all commands in Redis that supply a key as their first argument. Used to prefix keys with the Resque namespace.
protected $keyCommands

$namespace 보호되어 있는 프로퍼티

Redis namespace
protected $namespace

$redis 보호되어 있는 프로퍼티

The Predis instance
protected $redis