Toggle navigation
Hot Examples
RU
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Найти
Главная
malkusch
lock
mutex
RedisMutex
add
malkusch\lock\mutex\RedisMutex::add PHP Метод
Документация по классу RedisMutex
Показать файл
Открыть проект
add()
абстрактный
защищенный
Метод
Sets the key only if such key doesn't exist at the server yet.
abstract
protected
add
(
mixed
$redisAPI
,
string
$key
,
string
$value
,
integer
$expire
) :
boolean
$redisAPI
mixed
The connected Redis API.
$key
string
The key.
$value
string
The value.
$expire
integer
The TTL seconds.
Результат
boolean
True, if the key was set.
protected abstract function add($redisAPI, $key, $value, $expire);
RedisMutex
__construct
acquire
add
evalScript
getRedisIdentifier
isMajority
release
seedRandom
setLogger