async function getCachedBundle(etag, { module, path, version }, cwd) {
	if (BUNDLE_CACHE.has(etag)) {
		const mem = BUNDLE_CACHE.get(etag);
		if (Date.now() - mem.modified > CACHE_TTL) return;
		return {
			code: mem.code,
			brotli: mem.brotli,
			cacheStatus: 'MEMORY'
		};
	}
	const cacheFile = getCachePath({ module, path, version }, cwd);
	const stat = await fs.stat(cacheFile).catch(() => null);
	if (!stat || Date.now() - stat.mtimeMs > CACHE_TTL) return;
	// cached = await fs.readFile(cacheFile, 'utf-8');
	const [code, brotli] = await Promise.all([
		fs.readFile(cacheFile, 'utf-8'),
		fs.readFile(cacheFile + '.br').catch(() => null)
	]);
	// ressurect the in-memory cache entry from disk:
	BUNDLE_CACHE.set(etag, {
		module,
		path,
		version,
		brotli,
		upgrading: false,
		modified: stat.mtimeMs,
		code,
		cwd
	});
	return {
		code,
		brotli,
		cacheStatus: 'DISK'
	};
}
Get cached code for a bundle from the in-memory or disk caches
@param {string} etag the ETag is also used as the in-memory cache key
@param {Meta} meta
@param {string} [cwd]