danielstjules / redislock

Node distributed locking using redis
MIT License
110 stars 32 forks source link

Compatibility with redis-py lock implementation #16

Open philipp-schmidt opened 3 years ago

philipp-schmidt commented 3 years ago

On first glance the implementation here seems to be the same as the lock implementation of redis-py, a very common python redis client implementation. As debugging (and especially reproducing) lock errors can be very hard though, could someone with more insight (maybe @danielstjules?) confirm that this implementation is compatible with the way redis-py implements its locks?

https://github.com/andymccurdy/redis-py/blob/b940d073de4c13f8dfb08728965c6ac7c183c935/redis/lock.py

The Lua Scripts in both implementations basically do the same and the lock acquiring is the very same call.