description |
---|
Interacts with the key/value storage system. |
Param | Type | Default |
---|---|---|
pluginAPI | EnvoyAPI |
|
[installId] | number | null |
- instance
- .api :
EnvoyAPI
- .installId :
number
|null
- .pipeline() ⇒
EnvoyPluginStoragePipeline
- .get(key) ⇒
Promise.<(PluginStorageItem|null)>
- .set(key, value) ⇒
Promise.<PluginStorageItem>
- .setUnique(key, options) ⇒
Promise.<PluginStorageItem>
- .unset(key) ⇒
Promise.<(PluginStorageItem|null)>
- .api :
Creates a new pipeline instance.
Kind: instance method of EnvoyPluginStorage
Wrapper for single pipeline get.
Kind: instance method of EnvoyPluginStorage
Param | Type |
---|---|
key | string |
Wrapper for single pipeline set.
Kind: instance method of EnvoyPluginStorage
Param | Type |
---|---|
key | string |
value | * |
Wrapper for single pipeline setUnique.
Kind: instance method of EnvoyPluginStorage
Param | Type |
---|---|
key | string |
[options] | UniqueOptions |
Wrapper for single pipeline unset. Returns null if the item did not previously exist.
Kind: instance method of EnvoyPluginStorage
Param | Type |
---|---|
key | string |
Properties
Name | Type |
---|---|
key | string |
value |
Properties
Name | Type | Default | Description |
---|---|---|---|
chars | string |
"0123456789" |
the possible characters to pick from |
size | number |
12 |
the length of the value |