Skip to main content

LocalStorage

LocalStorage is a local storage for the local cloud. It stores jobs, tasks, transactions, and data. It can be used to test the cloud functionality without deploying to the cloud.

Index

Constructors

constructor

Properties

staticdata

data: {} = {}

The data


Type declaration

  • [key string]: string

staticfiles

files: {} = {}

The files


Type declaration

  • [key string]: Buffer

staticjobEvents

jobEvents: {} = {}

The job events


Type declaration

staticjobs

jobs: {} = {}

The jobs


Type declaration

statictasks

tasks: {} = {}

The tasks


Type declaration

statictransactions

transactions: {} = {}

The transactions


Type declaration

Methods

staticloadData

  • loadData(name: string): Promise<void>
  • Loads the data.

    @throws

    Error Method not implemented to keep web compatibility.


    Parameters

    • name: string

      The name to load the data from.

    Returns Promise<void>

staticsaveData

  • saveData(name: string): Promise<void>
  • Saves the data.

    @throws

    Error Method not implemented to keep web compatibility.


    Parameters

    • name: string

      The name to save the data under.

    Returns Promise<void>