PHP 클래스 PHPDaemon\Clients\Redis\MultiEval

상속: use trait PHPDaemon\Traits\ClassWatchdog, use trait PHPDaemon\Traits\StaticObjectWatchdog
파일 보기 프로젝트 열기: kakserpom/phpdaemon

공개 프로퍼티들

프로퍼티 타입 설명
$listeners Listeners

보호된 프로퍼티들

프로퍼티 타입 설명
$cachedParams
$pool
$stack

공개 메소드들

메소드 설명
__construct ( callable $cb, Pool $pool ) Constructor
__invoke ( $args ) : void Adds eval command or calls execute() method
add ( string $cmd, mixed $keys = null, mixed $argv = null ) Adds eval command in stack
addListener ( callable $cb ) Adds listener
cleanup ( ) Clean up
execute ( ) Runs the stack of commands
getParams ( ) : array Return params for eval command

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( callable $cb, Pool $pool )
$cb callable Callback
$pool Pool Redis pool

__invoke() 공개 메소드

Adds eval command or calls execute() method
public __invoke ( $args ) : void
리턴 void

add() 공개 메소드

Adds eval command in stack
public add ( string $cmd, mixed $keys = null, mixed $argv = null )
$cmd string Lua script
$keys mixed Keys
$argv mixed Arguments

addListener() 공개 메소드

Adds listener
public addListener ( callable $cb )
$cb callable

cleanup() 공개 메소드

Clean up
public cleanup ( )

execute() 공개 메소드

Runs the stack of commands
public execute ( )

getParams() 공개 메소드

Return params for eval command
public getParams ( ) : array
리턴 array

프로퍼티 상세

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

protected $cachedParams

$listeners 공개적으로 프로퍼티

Listeners
public $listeners

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

protected $pool

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

protected $stack