@Override
    public final void putEntry(final String key, final HttpCacheEntry entry) throws ResourceIOException {
        final String storageKey = digestToStorageKey(key);
        final T storageObject = serializer.serialize(new HttpCacheStorageEntry(key, entry));
        store(storageKey, storageObject);
    }
Abstract cache backend for serialized objects capable of CAS (compare-and-swap) updates.

@since 5.0
httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/AbstractSerializingCacheStorage.java