Persist get

From Sim Innovations Wiki
Jump to navigation Jump to search


value = persist_get(persist_id)

persist_get(persist_id) is used to get data from a persistence object.

Return value

Argument Type Description
value Object The value that is in the requested persistence object.


# Argument Type Description
1 persist_id Number Persist_id is the reference to a certain persistence object. It is received from the persist_add function.


-- Create a new persistence obeject
persist_id = persist_add("mykey", "INT[8]", { 1, 2, 3, 4, 5, 6, 7, 8 })

-- Get the data from the persistence object
mydata = persist_get(persist_id)