PHP Class PHPDaemon\Clients\Redis\MultiEval

Inheritance: use trait PHPDaemon\Traits\ClassWatchdog, use trait PHPDaemon\Traits\StaticObjectWatchdog
Exibir arquivo Open project: kakserpom/phpdaemon

Public Properties

Property Type Description
$listeners Listeners

Protected Properties

Property Type Description
$cachedParams
$pool
$stack

Public Methods

Method Description
__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

Method Details

__construct() public method

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

__invoke() public method

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

add() public method

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() public method

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

cleanup() public method

Clean up
public cleanup ( )

execute() public method

Runs the stack of commands
public execute ( )

getParams() public method

Return params for eval command
public getParams ( ) : array
return array

Property Details

$cachedParams protected_oe property

protected $cachedParams

$listeners public_oe property

Listeners
public $listeners

$pool protected_oe property

protected $pool

$stack protected_oe property

protected $stack