function setCachedBundle(etag, code, { module, path, version }, cwd) {
	BUNDLE_CACHE.set(etag, {
		module,
		path,
		version,
		brotli: null,
		upgrading: false,
		modified: Date.now(),
		code,
		cwd
	});
	const cacheFile = getCachePath({ module, path, version }, cwd);
	fwrite(cacheFile, code);
}
Store a generated bundle in the in-memory and disk caches
@param {string} etag the ETag is also used as the in-memory cache key
@param {string} code the generated bundle code
@param {Meta} meta
@param {string} [cwd]