Beignet API reference
    Preparing search index...

    Interface CreateMemoOptions<F>

    Options for createMemo(...).

    interface CreateMemoOptions<F extends (...args: never[]) => unknown> {
        key?: (...args: Parameters<F>) => string;
        name?: string;
    }

    Type Parameters

    • F extends (...args: never[]) => unknown
    Index
    key?: (...args: Parameters<F>) => string

    Build the cache key from the call arguments. Defaults to a structural, type-tagged encoding of the arguments that throws MemoKeyError for values it cannot encode deterministically (functions, symbols, class instances, circular references).

    name?: string

    Name used in instrumentation events and key errors. Defaults to the wrapped function's name.