Toggle navigation
Hot Examples
FR
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Rechercher
Accueil
malkusch
lock
mutex
RedisMutex
isMajority
malkusch\lock\mutex\RedisMutex::isMajority PHP Méthode
RedisMutex Class Documentation
Afficher le fichier
Open project: malkusch/lock
isMajority()
private
méthode
Returns if a count is the majority of all servers.
private
isMajority
(
integer
$count
) :
boolean
$count
integer
The count.
Résultat
boolean
True if the count is the majority.
private function isMajority($count) { return $count > count($this->redisAPIs) / 2; }
RedisMutex
__construct
acquire
add
evalScript
getRedisIdentifier
isMajority
release
seedRandom
setLogger