Node v6
Starting with v0.19 Astro must be used with Node v6+!
Menu

Settings Store

The SettingsStore single instance plugin allows storing and retrieving string values associated with a key. The settings store does not guarantee any degree of privacy for the stored data.

Sample Usage

await SettingsStore.set('some key', 'some non-secret value');
await const response = SettingsStore.get('some key');
alert('Retrieved value: ' + response);

Methods

set(key, value) #

Sets an item in the setting store.

SettingsStore.set('value', 'key');

get(key) #

Gets an item from the settings store. Returns a promise that resolves to the value of the item with the given key in the settings store.

await const response = SettingsStore.get('some key');
alert('Retrieved value: ' + response);

delete(key) #

Deletes an item with the given key from the settings store.

SettingsStore.delete('some key');