Memory cache items
An object as temporary memory location. The object can be accessed and modified or removed by other recipes, therefore gives no guarantee over the data itself. The object data disappears when the app closes.
- getItems
- Get the data from a temporary memory location. Items can be accessed and modified or removed by other recipes. But the data disappears when the app closes.
- setItems
- Set the data to the temporary memory location. Items can be accessed and modified or removed by other recipes. But the data disappears when the app closes.
examples
// read and write to the app cache. useful for temporary data betweeen calls to the recipe script
function TestItems()
{
var items = getItems();
items.note = "made by the chef !";
items.value = 123.4;
items.array_with_values = [1,2,3,4,5];
setItems(items);
}