public int getMaxCacheEntries() {
        return maxCacheEntries;
    }
Returns the maximum number of cache entries the cache will retain.
httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/CacheConfig.java