# File lib/redis.rb, line 642 def setnx(key, value) synchronize do |client| client.call [:setnx, key, value], &_boolify end end