@scolastico-dev/walu
    Preparing search index...

    Function prepareCache

    • Prepares the cache by extracting files from a ZIP archive and storing them in IndexedDB. This function clears the existing cache, extracts all files from the provided ZIP data, and stores each file as a blob in the cache store with progress tracking.

      Parameters

      • cfg: WaluConfig

        The WALU configuration object containing download status callback

      • data: ICacheData

        The storage data containing the ZIP file to be cached

      Returns Promise<void>

      A promise that resolves when the cache preparation is complete

      If the ZIP file cannot be loaded or processed