nupp.io.storage
Persistent key/value storage owned by the current host.
Module contents
Functions
| Function | Kind | Description |
|---|
clear | function | Removes every key in the selected store. |
get | function | Reads one UTF-8 value, or nil if the key is absent. |
remove | function | Removes one key. |
set | function | Writes one UTF-8 value. |
Functions
clearfunction
const clear: function(): nil
Removes every key in the selected store.
Returns
getfunction
const get: function(name: string): string?
Reads one UTF-8 value, or nil if the key is absent.
Arguments
| Name | Type | Description |
|---|
name | string | |
Returns
removefunction
Removes one key.
Arguments
| Name | Type | Description |
|---|
name | string | |
Returns
setfunction
Writes one UTF-8 value.
Arguments
| Name | Type | Description |
|---|
name | string | |
value | string | |
Returns