@Override
    public void updateEntry(
            final String url, final HttpCacheCASOperation casOperation) throws ResourceIOException {
        lock.lock();
        try {
            final HttpCacheEntry existingEntry = entries.get(url);
            entries.put(url, casOperation.execute(existingEntry));
        } finally {
            lock.unlock();
        }
    }
Removes a HttpCacheEntry from the cache

@param url
           Url that is the cache key
httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/BasicHttpCacheStorage.java