PHP 클래스 PHPDaemon\Clients\Redis\Pool

저자: Vasily Zorin ([email protected])
상속: extends PHPDaemon\Network\Client
파일 보기 프로젝트 열기: kakserpom/phpdaemon 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$servConnSub Connection[]

보호된 프로퍼티들

프로퍼티 타입 설명
$currentMasterAddr

공개 메소드들

메소드 설명
__call ( $cmd, array $args ) : void Magic __call Example: $redis->lpush('mylist', microtime(true));
autoscan ( string $cmd, array $args = [], cllable $cbEnd = null, integer $limit = null ) : AutoScan Wrapper for scans commands
getLocalSubscribersCount ( string $chan ) : integer
lock ( string $key, integer $timeout ) : Lock
meval ( callable $cb = null ) : MultiEval Easy wrapper for queue of eval's

보호된 메소드들

메소드 설명
getConfigDefaults ( ) : array | boolean Setting default config options Overriden from NetworkClient::getConfigDefaults
sendCommand ( string $addr, string $cmd, array $args, callable $cb ) : void
sendSubCommand ( string $cmd, array $args, callable $cb ) : boolean

메소드 상세

__call() 공개 메소드

Magic __call Example: $redis->lpush('mylist', microtime(true));
public __call ( $cmd, array $args ) : void
$args array Arguments
리턴 void

autoscan() 공개 메소드

Wrapper for scans commands
public autoscan ( string $cmd, array $args = [], cllable $cbEnd = null, integer $limit = null ) : AutoScan
$cmd string Command
$args array Arguments
$cbEnd cllable Callback
$limit integer Limit
리턴 AutoScan

getConfigDefaults() 보호된 메소드

Setting default config options Overriden from NetworkClient::getConfigDefaults
protected getConfigDefaults ( ) : array | boolean
리턴 array | boolean

getLocalSubscribersCount() 공개 메소드

public getLocalSubscribersCount ( string $chan ) : integer
$chan string
리턴 integer

lock() 공개 메소드

public lock ( string $key, integer $timeout ) : Lock
$key string
$timeout integer
리턴 Lock

meval() 공개 메소드

Easy wrapper for queue of eval's
public meval ( callable $cb = null ) : MultiEval
$cb callable
리턴 MultiEval

sendCommand() 보호된 메소드

protected sendCommand ( string $addr, string $cmd, array $args, callable $cb ) : void
$addr string
$cmd string
$args array
$cb callable
리턴 void

sendSubCommand() 보호된 메소드

protected sendSubCommand ( string $cmd, array $args, callable $cb ) : boolean
$cmd string
$args array
$cb callable
리턴 boolean

프로퍼티 상세

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

protected $currentMasterAddr

$servConnSub 공개적으로 프로퍼티

public Connection[],PHPDaemon\Clients\Redis $servConnSub
리턴 Connection[]