PHP 클래스 malkusch\lock\mutex\PHPRedisMutex

This implementation requires at least phpredis-2.2.4. 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

공개 메소드들

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

보호된 메소드들

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

메소드 상세

__construct() 공개 메소드

The Redis APIs needs to be connected yet. I.e. Redis::connect() was called already.
public __construct ( array $redisAPIs, string $name, integer $timeout = 3 )
$redisAPIs array The Redis connections.
$name string The lock name.
$timeout integer The time in seconds a lock expires, default is 3.

add() 보호된 메소드

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

evalScript() 보호된 메소드

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

getRedisIdentifier() 보호된 메소드

protected getRedisIdentifier ( $redis )