constructor(cacheFileLocation, cacheStrategy) {
    const useChecksum = cacheStrategy === "content";

    try {
      this.#fileEntryCache = fileEntryCache.createFromFile(
        /* filePath */ cacheFileLocation,
        useChecksum,
      );
    } catch {
      // https://github.com/prettier/prettier/issues/17092
      // If `createFromFile()` fails, it's probably because the format
      // of cache file changed,it happened when we release v3.5.0
      if (fs.existsSync(cacheFileLocation)) {
        fs.unlinkSync(cacheFileLocation);
        // retry
        this.#fileEntryCache = fileEntryCache.createFromFile(
          /* filePath */ cacheFileLocation,
          useChecksum,
        );
      }
    }

    this.#useChecksum = useChecksum;
  }
@param {string} cacheFileLocation The path of cache file location. (default: `node_modules/.cache/prettier/.prettier-cache`)
@param {string} cacheStrategy