Interface AsyncStorage<T>

Storage interface that can be passed to LTM.

T - The storage state type.

Valid storage can also be built using GenericStorageWrapper.

interface AsyncStorage<T> {
    load(): Promise<null | T>;
    save(obj: T): Promise<void>;
}

Type Parameters

  • T

Implemented by

Methods

Methods