lib/redis/lock.rb in redis-objects-0.5.0 vs lib/redis/lock.rb in redis-objects-0.5.1
- old
+ new
@@ -39,10 +39,10 @@
gotit = redis.setnx(key, expiration)
break if gotit
# Lock is being held. Now check to see if it's expired (if we're using
# lock expiration).
- # See "Handling Deadlocks" section on http://code.google.com/p/redis/wiki/SetnxCommand
+ # See "Handling Deadlocks" section on http://redis.io/commands/setnx
if !@options[:expiration].nil?
old_expiration = redis.get(key).to_f
if old_expiration < Time.now.to_f
# If it's expired, use GETSET to update it.