Options
All
  • Public
  • Public/Protected
  • All
Menu

Handles the central data store's IPC functions

Hierarchy

  • CentralStore

Index

Properties

ipc: IPC

Methods

  • clear(): Promise<undefined>
  • Clears the central

    Returns Promise<undefined>

    A promise which resolves when complete

  • copyMap(): Promise<Map<string, any>>
  • Copy of the central data store map

    Returns Promise<Map<string, any>>

    A promise with the central data store map. Note that modifying this map will not modify the central data store.

  • delete(key: string): Promise<boolean>
  • Deletes a key from the central data store

    Parameters

    • key: string

      The key to delete

    Returns Promise<boolean>

    Promise which resolves a success boolean

  • get(key: string): Promise<any>
  • Gets a value from the central data store

    Parameters

    • key: string

      The key to get

    Returns Promise<any>

    Promise which resolves with the value

  • has(key: string): Promise<boolean>
  • Check whether a key exists in the central data store

    Parameters

    • key: string

      Key to check

    Returns Promise<boolean>

    Promise which resolves with a boolean

  • set(key: string, value: unknown): Promise<void>
  • Assign a value to the central data store

    Parameters

    • key: string

      Unique key to assign this value

    • value: unknown

      The value

    Returns Promise<void>

    Promise which resolves when complete

Generated using TypeDoc