Interface DurableObjectStorage

interface DurableObjectStorage {
    delete(key, options?): Promise<boolean>;
    delete(keys, options?): Promise<number>;
    deleteAlarm(options?): Promise<void>;
    deleteAll(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>;
    setAlarm(scheduledTime, options?): Promise<void>;
    sync(): Promise<void>;
    transaction<T>(closure): Promise<T>;
    transactionSync<T>(closure): T;
}

Methods

  • Parameters

    Returns Promise<boolean>

  • Parameters

    Returns Promise<number>

  • Parameters

    Returns Promise<void>

  • 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>

  • Parameters

    Returns Promise<void>

  • Returns Promise<void>

  • Type Parameters

    • T

    Parameters

    Returns Promise<T>

  • Type Parameters

    • T

    Parameters

    • closure: (() => T)
        • (): T
        • Returns T

    Returns T