PHP 클래스 PHPDaemon\Clients\Redis\Lock

저자: Vasily Zorin ([email protected])
상속: use trait PHPDaemon\Traits\ClassWatchdog, use trait PHPDaemon\Traits\StaticObjectWatchdog
파일 보기 프로젝트 열기: kakserpom/phpdaemon

보호된 프로퍼티들

프로퍼티 타입 설명
$key
$pool
$timeout
$token

공개 메소드들

메소드 설명
__construct ( string $key, integer $timeout, Pool $pool ) Constructor
acquire ( callable $cb ) : this
release ( callable $cb = null ) : this
timeout ( integer $timeout ) : this

메소드 상세

__construct() 공개 메소드

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

acquire() 공개 메소드

public acquire ( callable $cb ) : this
$cb callable
리턴 this

release() 공개 메소드

public release ( callable $cb = null ) : this
$cb callable
리턴 this

timeout() 공개 메소드

public timeout ( integer $timeout ) : this
$timeout integer
리턴 this

프로퍼티 상세

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

protected $key

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

protected $pool

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

protected $timeout

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

protected $token