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

  • PreferenceStore

Index

Constructors

constructor

Properties

Private filePath

filePath: string

Methods

delete

  • delete(key: string, options?: object): Promise<void>

Protected doDelete

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

Protected doGet

  • doGet(name: string, namespace: string): Promise<Preference | undefined>

Protected doList

  • doList(namespace: string): Promise<Preference[]>

Protected doPut

Private doWithPreferenceFile

get

  • get<V>(key: string, options?: object): Promise<V | undefined>

Private init

  • init(): void

list

  • list<V>(scope: PreferenceScope | string): Promise<Array<object>>

put

  • put<V>(key: string, value: V, options?: object): Promise<V>

Private read

Protected scope

  • scope(scope: PreferenceScope | string): string

Protected scopeKey

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

Generated using TypeDoc