class Redis
def getset(key, value)
-
(String)
- the old value stored in the key, or `nil` if the key
Parameters:
-
value
(String
) -- value to replace the current value with -
key
(String
) --
def getset(key, value) synchronize do |client| client.call([:getset, key, value.to_s]) end end