Options
All
  • Public
  • Public/Protected
  • All
Menu

PreferenceStore implementation that stores preferences in a shared file. Note: this implementation attempts to lock the preference file before reading or writing to it but it is not intended for production usage.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Private Readonly filePath

filePath: string

Methods

delete

Protected doDelete

  • doDelete(pref: string, namespace: string): Promise<void>

Protected doGet

Protected doList

Protected doPut

Private doWithPreferenceFile

get

  • get<V>(key: string, options?: { defaultValue?: V; scope?: PreferenceScope | string }): Promise<V | undefined>

Private init

  • init(): void

list

put

Private read

Protected scope

Protected scopeKey

  • scopeKey(key: string, scope?: string): string

Generated using TypeDoc