PHP Class PHPDaemon\Clients\Redis\Lock

Author: Vasily Zorin ([email protected])
Inheritance: use trait PHPDaemon\Traits\ClassWatchdog, use trait PHPDaemon\Traits\StaticObjectWatchdog
Exibir arquivo Open project: kakserpom/phpdaemon

Protected Properties

Property Type Description
$key
$pool
$timeout
$token

Public Methods

Method Description
__construct ( string $key, integer $timeout, Pool $pool ) Constructor
acquire ( callable $cb ) : this
release ( callable $cb = null ) : this
timeout ( integer $timeout ) : this

Method Details

__construct() public method

Constructor
public __construct ( string $key, integer $timeout, Pool $pool )
$key string
$timeout integer
$pool Pool

acquire() public method

public acquire ( callable $cb ) : this
$cb callable
return this

release() public method

public release ( callable $cb = null ) : this
$cb callable
return this

timeout() public method

public timeout ( integer $timeout ) : this
$timeout integer
return this

Property Details

$key protected_oe property

protected $key

$pool protected_oe property

protected $pool

$timeout protected_oe property

protected $timeout

$token protected_oe property

protected $token