lib/master_lock/redis_lock.rb
def release
      result = eval_script(
        RedisScripts::RELEASE_SCRIPT,
        RedisScripts::RELEASE_SCRIPT_HASH,
        keys: [redis_key],
        argv: [owner]
      )
      result != 0
    end
# Release the lock if still held by this owner. If the lock is no longer
# held by the owner, this method will fail and return false.
#
# @return [Boolean] whether the lock was released successfully
Release the lock if still held by this owner. If the lock is no longer
held by the owner, this method will fail and return false.
Release the lock if still held by this owner . If the lock is no longer held by the owner this method will fail and return false .
def release
      result = eval_script(
        RedisScripts::RELEASE_SCRIPT,
        RedisScripts::RELEASE_SCRIPT_HASH,
        keys: [redis_key],
        argv: [owner]
      )
      result != 0
    end
def release result = eval_script ( RedisScripts :: RELEASE_SCRIPT , RedisScripts :: RELEASE_SCRIPT_HASH , keys : [ redis_key ] , argv : [ owner ] ) result != 0 end
Release the lock if still held by this owner.
Release the lock if still held by this owner .
whether the lock was released successfully
whether the lock was released successfully
Boolean