```ruby
module PaasResolver
  module_function

  def get_redis_config
    url = begin
      # TODO: !Important
      # need to fetch by service name if we use multiple redis services
      JSON.parse(ENV["VCAP_SERVICES"])["redis"][0]["credentials"]["uri"]
    rescue
      ENV["REDIS_URL"]
    end

    { url: url, db: 0 }
  end

  def get_elasticsearch_config
    url = begin
      # TODO: !Important
      # need to fetch by service name if we use multiple elasticsearch services
      JSON.parse(ENV["VCAP_SERVICES"])["elasticsearch"][0]["credentials"]["uri"]
    rescue
      ENV["ELASTICSEARCH_URL"]
    end

    { url: url }
  end
end
```

Update redis config to remove client commands
user
```ruby
module PaasResolver
  module_function

  def get_redis_config
    url = begin
      # TODO: !Important
      # need to fetch by service name if we use multiple redis services
      JSON.parse(ENV["VCAP_SERVICES"])["redis"][0]["credentials"]["uri"]
    rescue
      ENV["REDIS_URL"]
    end

    { url: url, db: 0, id: nil }
  end

  def get_elasticsearch_config
    url = begin
      # TODO: !Important
      # need to fetch by service name if we use multiple elasticsearch services
      JSON.parse(ENV["VCAP_SERVICES"])["elasticsearch"][0]["credentials"]["uri"]
    rescue
      ENV["ELASTICSEARCH_URL"]
    end

    { url: url }
  end
end
```
assistant