This Ruby lib implements the Redis-based distributed lock manager algorithm described in this blog post.

Source: antirez/redlock-rb: Redlock Redis-based distributed locks implementation in Ruby