mlx-bun library API
    Preparing search index...

    Interface PrefixCacheHit<State, Attachment>

    A reusable prefix and the backend/method state that covers its tokens. The caller owns a returned hit. After releasing or returning its state, it must release any retained backing through retain.

    interface PrefixCacheHit<State, Attachment = never> {
        attachments?: Attachment;
        caches: State;
        retain?: () => void;
        tokens: number[];
    }

    Type Parameters

    • State
    • Attachment = never

    Hierarchy (View Summary)

    Index
    attachments?: Attachment
    caches: State
    retain?: () => void
    tokens: number[]