PHP 클래스 malkusch\lock\mutex\PredisMutex

Note: If you're going to use this mutex in a forked process, you have to call {@link seedRandom()} in each instance.
저자: Markus Malkusch ([email protected])
상속: extends RedisMutex
파일 보기 프로젝트 열기: malkusch/lock 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( array $clients, string $name, integer $timeout = 3 ) Sets the Redis connections.

보호된 메소드들

메소드 설명
add ( $client, $key, $value, $expire )
evalScript ( $client, $script, $numkeys, array $arguments )
getRedisIdentifier ( $client )

메소드 상세

__construct() 공개 메소드

Sets the Redis connections.
public __construct ( array $clients, string $name, integer $timeout = 3 )
$clients array The Redis clients.
$name string The lock name.
$timeout integer The time in seconds a lock expires, default is 3.

add() 보호된 메소드

protected add ( $client, $key, $value, $expire )

evalScript() 보호된 메소드

protected evalScript ( $client, $script, $numkeys, array $arguments )
$arguments array

getRedisIdentifier() 보호된 메소드

protected getRedisIdentifier ( $client )