Interface: ScriptStorage
Persistent key-value storage scoped to the current Script identity.
Methods
clear()
clear(
prefix?):void
Removes every key matching the optional prefix.
Parameters
prefix?
string | null
Returns
void
get()
get(
key):DataValue
Returns the stored value, or null when the key is absent.
Parameters
key
string
Returns
getKeys()
getKeys(
prefix?): readonlystring[]
Returns stored keys, optionally restricted to a prefix.
Parameters
prefix?
string | null
Returns
readonly string[]
set()
set(
key,value?):void
Stores a value; omitting it removes the key.
Parameters
key
string
value?
Returns
void