put
memory.put(key, value)
db.put(key, value)
Description
Saves the data in a variable in that data store.
Parameters
| Parameter | Type | Explanation |
|---|---|---|
| key | String | The variable name in that datastore |
| value | Object | The value to set the variable to |
Example
memory.put("counter", 0)
mem = option.memorystore(“MemoryStoreName”)
mem.put("counter", 0)
mydb = option.dbstore(“DatabaseName”)
mydb.put("counter", message)