@Override
    public void putEntry(
            final String url, final HttpCacheEntry entry) throws ResourceIOException {
        lock.lock();
        try {
            entries.put(url, entry);
        } finally {
            lock.unlock();
        }
    }
Places a HttpCacheEntry in the cache

@param url
           Url to use as the cache key
@param entry
           HttpCacheEntry to place in the cache
httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/BasicHttpCacheStorage.java