Interface StorageManagerExtraOptionsInternal

Additional options for StorageManager, that can be customized by the user.

interface StorageManagerExtraOptions {
    cleanup?: boolean;
    saveInterval?: number;
}

Properties

cleanup?: boolean

Whether to finalize database before exiting.

true

saveInterval?: number

Interval in milliseconds for saving the storage.

When saving, the storage is expected to persist all changes to disk, so that they are not lost.