Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
malkusch
lock
mutex
RedisMutex
isMajority
malkusch\lock\mutex\RedisMutex::isMajority PHP Method
RedisMutex Class Documentation
Show file
Open project: malkusch/lock
isMajority()
private
method
Returns if a count is the majority of all servers.
private
isMajority
(
integer
$count
) :
boolean
$count
integer
The count.
return
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