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
setLogger
malkusch\lock\mutex\RedisMutex::setLogger PHP Method
RedisMutex Class Documentation
Show file
Open project: malkusch/lock
setLogger()
public
method
RedLock is a fault tolerant lock algorithm. I.e. it does tolerate failing redis connections without breaking. If you want to get notified about such events you'll have to provide a logger. Those events will be logged as warnings.
public
setLogger
(
Psr\Log\LoggerInterface
$logger
)
$logger
Psr\Log\LoggerInterface
The logger.
public function setLogger(LoggerInterface $logger) { $this->logger = $logger; }
RedisMutex
__construct
acquire
add
evalScript
getRedisIdentifier
isMajority
release
seedRandom
setLogger