Basic storage driver interface, describing the lifecycle of a storage driver

interface IStorageDriver {
    destroy?(): MaybePromise<void>;
    load?(): MaybePromise<void>;
    save?(): MaybePromise<void>;
    setup?(log): void;
}

Implemented by

Methods

  • Save session to some external storage. Should be used to commit pending changes in the session. For example, saving session content to file/network/etc, or committing a database transaction

    It is safe to batch all changes and only commit them here, unless stated otherwise in the method description

    Returns MaybePromise<void>

Generated using TypeDoc