redlock-php icon indicating copy to clipboard operation
redlock-php copied to clipboard

Redis distributed locks in PHP

Results 14 redlock-php issues
Sort by recently updated
recently updated
newest added

list($host, $port, $timeout,$auth) = $server; $redis = new \Redis(); $redis->connect($host, $port, $timeout); if ($auth) { $redis->auth($auth); }

My PHP version is 7.2.10, and I installed the package to report an error ```` [InvalidArgumentException] Package ronnylt/redlock-php at version has a PHP requirement incompatible with your PHP version (7.2.10)...

Hello, this package was abandoned ?

Please tag a version so that we could reference this library.

hello: I found that the calculation of the majority is not strict. In php we should use intval(N/2)+1 instead of N/2+1, because if we have three masters the we must...

Firstly, thank you for writing this brilliant distributed semaphore using Redis! For me to be able to use this I require a namespace for the RedLock class, which I have...

when i test the redlock file, the program terminates with following fatal error: Fatal error: Uncaught exception 'RedisException' with message 'read error on connection' in C:\OpenSource\xampp\htdocs\demo\vendor\ronnylt\redlock-php\src\RedLock.php on line 99 RedisException:...

Hi, Your composer.json only requires phpredis 2.2.5: https://github.com/ronnylt/redlock-php/blob/master/composer.json#L12 Your actual code requires phpredis >= 2.6.12: https://github.com/ronnylt/redlock-php/blob/master/src/RedLock.php#L99 For details, see this: https://github.com/phpredis/phpredis/commit/711f053b9f23116a917e761360c3f59f2fbdabea When I run your test with phpredis 2.2.5, I...