public CachedLayer writeTarLayer(DescriptorDigest diffId, Blob compressedBlob)
      throws IOException {
    return cacheStorageWriter.writeTarLayer(diffId, compressedBlob);
  }
Caches a layer that was extracted from a local base image, and names the file using the
provided diff id.

@param diffId the diff id
@param compressedBlob the compressed layer blob
@return the {@link CachedLayer} for the written layer
@throws IOException if an I/O exception occurs
jib-core/src/main/java/com/google/cloud/tools/jib/cache/Cache.java