class RedisClient

def call(*command, **kwargs)

def call(*command, **kwargs)
  command = @command_builder.generate(command, kwargs)
  result = ensure_connected do |connection|
    @middlewares.call(command, config) do
      connection.call(command, nil)
    end
  end
  if block_given?
    yield result
  else
    result
  end
end