key-value_storage
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
key-value_storage [2019/01/09 11:00] – created akuzmuk | key-value_storage [2019/01/11 15:51] – akuzmuk | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Key-value storage ====== | ====== Key-value storage ====== | ||
- | Key-value storage is a simple database that you can use to store any data using your scripts. It is useful when you need to save settings, parameters, counters, flags, etc. Values are being stored in backups as well. So they will be restored on backup restore, | + | Key-value storage is a simple database that you can use to store any data using your scripts. It is useful when you need to save settings, parameters, counters, flags, etc. Values are being stored in backups as well. So they will be restored on backup restore. |
This storage was added in WebHMI version 3.4. | This storage was added in WebHMI version 3.4. | ||
Line 10: | Line 10: | ||
==== Set(key, value) ==== | ==== Set(key, value) ==== | ||
- | The Set function saves value into key-value storage. **key** is an identified | + | The Set function saves value into key-value storage. **key** is an identifier |
- | Functions return | + | Function returns |
Example: | Example: | ||
Line 18: | Line 18: | ||
function main (userId) | function main (userId) | ||
- | if (!Set(" | + | if (Set(" |
| | ||
end | end |
key-value_storage.txt · Last modified: 2021/07/22 07:32 by atolstov