Interface DurableObjectTransaction

interface DurableObjectTransaction {
    delete(key, options?): Promise<boolean>;
    delete(keys, options?): Promise<number>;
    deleteAlarm(options?): Promise<void>;
    get<T>(key, options?): Promise<T>;
    get<T>(keys, options?): Promise<Map<string, T>>;
    getAlarm(options?): Promise<number>;
    list<T>(options?): Promise<Map<string, T>>;
    put<T>(key, value, options?): Promise<void>;
    put<T>(entries, options?): Promise<void>;
    rollback(): void;
    setAlarm(scheduledTime, options?): Promise<void>;
}

Methods

  • Parameters

    Returns Promise<boolean>

  • Parameters

    Returns Promise<number>

  • Type Parameters

    • T = unknown

    Parameters

    Returns Promise<T>

  • Type Parameters

    • T = unknown

    Parameters

    Returns Promise<Map<string, T>>

  • Type Parameters

    • T = unknown

    Parameters

    Returns Promise<Map<string, T>>

  • Type Parameters

    • T

    Parameters

    Returns Promise<void>

  • Type Parameters

    • T

    Parameters

    Returns Promise<void>

  • Returns void

  • Parameters

    Returns Promise<void>