redis-not-compatible-with-redis5-3074189-2.patch 663 B

12345678910111213141516171819202122
  1. diff --git a/lib/Redis/Lock/PhpRedis.php b/lib/Redis/Lock/PhpRedis.php
  2. index f9ae845..6cf626d 100644
  3. --- a/lib/Redis/Lock/PhpRedis.php
  4. +++ b/lib/Redis/Lock/PhpRedis.php
  5. @@ -108,7 +108,7 @@ class Redis_Lock_PhpRedis extends Redis_Lock_DefaultBackend {
  6. if ($client->get($key) == $id) {
  7. $client->multi();
  8. - $client->delete($key);
  9. + $client->del($key);
  10. $client->exec();
  11. }
  12. else {
  13. @@ -131,7 +131,7 @@ class Redis_Lock_PhpRedis extends Redis_Lock_DefaultBackend {
  14. $owner = $client->get($key);
  15. if (empty($owner) || $owner == $id) {
  16. - $client->delete($key);
  17. + $client->del($key);
  18. }
  19. }
  20. }