PHP Class PHPDaemon\Clients\Redis\Pool

Author: Vasily Zorin ([email protected])
Inheritance: extends PHPDaemon\Network\Client
Afficher le fichier Open project: kakserpom/phpdaemon Class Usage Examples

Méthodes publiques

Свойство Type Description
$servConnSub Connection[]

Protected Properties

Свойство Type Description
$currentMasterAddr

Méthodes publiques

Méthode Description
__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

Méthodes protégées

Méthode Description
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

Method Details

__call() public méthode

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

autoscan() public méthode

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
Résultat AutoScan

getConfigDefaults() protected méthode

Setting default config options Overriden from NetworkClient::getConfigDefaults
protected getConfigDefaults ( ) : array | boolean
Résultat array | boolean

getLocalSubscribersCount() public méthode

public getLocalSubscribersCount ( string $chan ) : integer
$chan string
Résultat integer

lock() public méthode

public lock ( string $key, integer $timeout ) : Lock
$key string
$timeout integer
Résultat Lock

meval() public méthode

Easy wrapper for queue of eval's
public meval ( callable $cb = null ) : MultiEval
$cb callable
Résultat MultiEval

sendCommand() protected méthode

protected sendCommand ( string $addr, string $cmd, array $args, callable $cb ) : void
$addr string
$cmd string
$args array
$cb callable
Résultat void

sendSubCommand() protected méthode

protected sendSubCommand ( string $cmd, array $args, callable $cb ) : boolean
$cmd string
$args array
$cb callable
Résultat boolean

Property Details

$currentMasterAddr protected_oe property

protected $currentMasterAddr

$servConnSub public_oe property

public Connection[],PHPDaemon\Clients\Redis $servConnSub
Résultat Connection[]