lib/suo/client/redis.rb in suo-0.2.0 vs lib/suo/client/redis.rb in suo-0.2.1

- old
+ new

@@ -19,21 +19,21 @@ def set(key, newval, _) ret = @client.multi do |multi| multi.set(key, newval) end - ret[0] == "OK" + ret && ret[0] == "OK" end def synchronize(key) @client.watch(key) do yield end ensure @client.unwatch end - def set_initial(key) + def initial_set(key) @client.set(key, "") end end end end