How do I create an async caching http client?
问题 Using the org.apache.httpcomponents:httpasyncclient-cache:4.1.3 library, I'm trying to work out how I can create an asynchronous caching http client? I can create each individually, using their respective builders, but I can't find a way to have both. e.g. CloseableHttpClient client = CachingHttpClientBuilder.create() .setCacheConfig(cacheConfig()) .build(); CloseableHttpAsyncClient build = HttpAsyncClientBuilder.create() .build(); Por que no los dos? N.B. I'm not tied to this version of the