Skip to main content

put

memory.put(key, value)

db.put(key, value)

Description

Saves the data in a variable in that data store.

Parameters

ParameterTypeExplanation
keyStringThe variable name in that datastore
valueObjectThe 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)