mlx-bun library API
    Preparing search index...
    • Prepare immutable native storage on the owner thread, then pack, hash and write it on the CPU worker. The optional runner covers preparation only. Callers retain cache and attachment ownership until this promise settles.

      Parameters

      • path: string
      • tokens: number[]
      • caches: Cache[]
      • meta: KvSaveMeta = {}
      • OptionalrunStep: <T>(step: () => T) => Promise<T>
      • codecs: CacheCodecProvider = legacyCacheCodecs
      • storage: Pick<KvWriteRequest, "layout" | "blockBytes" | "segmented"> = {}

      Returns Promise<void>