mlx-bun library API
    Preparing search index...
    interface KvCacheSettings {
        closed?: () => void;
        codecs?: CacheCodecProvider;
        identity?: unknown;
        idleDemotion?: {
            afterMs: number;
            schedule(run: () => void, intervalMs: number): () => void;
        };
        kvBudgetBytes?: number;
        runtime?: RuntimeConfig;
    }
    Index
    closed?: () => void

    Runs once after close cleared the state (the saved-state budget's release).

    The snapshot form of the composition's caches (default the graph's stateCodecs, else the built-in codecs).

    identity?: unknown

    Artifact, implementation, state ABI and codec identity captured at load: part of every checkpoint key.

    idleDemotion?: {
        afterMs: number;
        schedule(run: () => void, intervalMs: number): () => void;
    }

    Demote RAM entries idle this long to saved state (milliseconds), on schedule's timer.

    kvBudgetBytes?: number

    Aggregate projected KV bytes the admitted requests may hold (--kv-budget); absent: unlimited.

    runtime?: RuntimeConfig

    The scope paged state is built in.