Toggle navigation
Hot Examples
IT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Cerca
Home
malkusch
lock
mutex
RedisMutex
add
malkusch\lock\mutex\RedisMutex::add PHP Method
RedisMutex Class Documentation
Mostra file
Open project: malkusch/lock
add()
abstract
protected
method
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.
return
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