mlx-bun library API
    Preparing search index...

    The composition's cache service (see the file header).

    Implements

    Index

    The snapshot form of the composition's caches: how the scheduler copies live serial state it publishes.

    • set onPut(observe: ((tokens: number[], namespace: string) => void) | null): void

      Observes every prefix the cache stores, with its tokens.

      Parameters

      • observe: ((tokens: number[], namespace: string) => void) | null

      Returns void

    • The longest prefix of promptIds held in RAM under namespace, which is looked up as given (not under the composition's paging).

      Parameters

      • promptIds: number[]
      • namespace: string

      Returns number

    • Start reading promptIds' saved prefix in namespace before the request is admitted. The returned release ends the request's interest.

      Parameters

      • promptIds: number[]
      • namespace: string
      • OptionalsessionId: string

      Returns Promise<() => void>