public Builder setMaxCacheEntries(final int maxCacheEntries) {
            this.maxCacheEntries = maxCacheEntries;
            return this;
        }
Sets the maximum number of cache entries the cache will retain.

@return this instance.
httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/CacheConfig.java