module Redis::Commands::Strings

def getset(key, value)

Returns:
  • (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)
  send_command([:getset, key, value.to_s])
end