class Redis

def config(action, *args)

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

Parameters:
  • action (String) -- 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
        Hash[*reply]
      else
        reply
      end
    end
  end
end