bin/try in redis_getlock-0.2.0 vs bin/try in redis_getlock-0.3.0
- old
+ new
@@ -12,9 +12,9 @@
mutex = RedisGetlock.new(redis: Redis.new, key: 'redis_getlock', logger: Logger.new(STDOUT))
puts 'redis-cli> del redis_getlock'
mutex.synchronize do
loop do
- puts mutex.locked?
+ puts "locked?:#{mutex.locked?} self_locked?:#{mutex.self_locked?}"
sleep 1
end
end