class Redis

def config(action, *args)

Returns:
  • (String, Hash) - string reply, or hash when retrieving more than one

Parameters:
  • action (Symbol) -- e.g. `:get`, `:set`, `:resetstat`
def config(action, *args)
  synchronize do |client|
    client.call([:config, action] + args) do |reply|
      if reply.kind_of?(Array) && action == :get
        Hashify.call(reply)
      else
        reply
      end
    end
  end
end