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