ChemPal Documentation - v0.0.13-beta.5
    Preparing search index...

    Function loadExcludedProductKeys

    • Load just the set of exclusion keys — convenient for hot-path membership checks (e.g. inside SupplierBase.getProductData) where the full metadata is not needed.

      Returns Promise<Set<string>>

      A Set of exclusion keys (empty on read failure).

      const keys = await loadExcludedProductKeys();
      if (keys.has(cacheKey)) return undefined; // skip this product
      export async function loadExcludedProductKeys(): Promise<Set<string>> {
      const map = await loadExcludedProducts();
      return new Set(Object.keys(map));
      }