mlanett/redis-lock
mlanett-redis-lock, на сайте с 19 декабря 2022, 20:10
Pessimistic locking using Redis.
This gem implements a pessimistic lock using Redis. It correctly handles timeouts and vanishing lock owners (such as machine failures)
This uses setnx, but not the setnx algorithm described in the redis cookbook, which is not robust.