class Redis
def config(action, *args)
-
(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.is_a?(Array) && action == :get Hashify.call(reply) else reply end end end end