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
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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 )