Closed
Description
What is this this error?
It's not possible to acquire a lock because at least half of the Redis serv er are not available.
This is my code:
$redis = new Client;
$redis->auth(REDIS-PASSWORD,null);
$redis->connect();
$my_range = range(1,100);
foreach ($my_range as $each_range){
$mutex = new PredisMutex([$redis], "balance");
$mutex->synchronized(function () use($each_range) {
$this->use_this_range($each_range);
});
}
Metadata
Metadata
Assignees
Labels
No labels