nanos world API Reference Unofficial documentation
Static function Shared Moderate

Package.SetPersistentData

Sets a Persistent Value which will be saved to disk. Note the actual flush to disk is deferred and may not occur immediately

Syntax

Lua
Package.SetPersistentData(key, value)

Parameters

Name Type Default Description
key string Key to index data into. It can be separated by '.' to set a child element.
value any Value to set at the key