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