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?
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.