lib/master_lock/redis_lock.rb
# Extend the expiration time of 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. The lock lifetime is extended by the configured ttl.
#
# @return [Boolean] whether the lock was extended successfully
Extend the expiration time of 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. The lock lifetime is extended by the configured ttl.
Extend the expiration time of 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 . The lock lifetime is extended by the configured ttl .
def extend
      result = eval_script(
        RedisScripts::EXTEND_SCRIPT,
        RedisScripts::EXTEND_SCRIPT_HASH,
        keys: [redis_key],
        argv: [owner, ttl_ms]
      )
      result != 0
    end
def extend result = eval_script ( RedisScripts :: EXTEND_SCRIPT , RedisScripts :: EXTEND_SCRIPT_HASH , keys : [ redis_key ] , argv : [ owner , ttl_ms ] ) result != 0 end
Extend the expiration time of the lock if still held by this owner.
Extend the expiration time of the lock if still held by this owner .
whether the lock was extended successfully
whether the lock was extended successfully
Boolean