setItem
Adds an item with the specified key.
Parameters
-
key:
string
The key of the item to be added or updated. -
value:
UgcFormStorageAvailableValueType
The value to be stored under the specified key. Allowed value types:string
boolean
number
null
Record<string, UgcFormStorageAvailableValueType_Plain>
Properties of UgcFormStorageAvailableValueType_Plain
string
boolean
number
null
Return Value
The method returns a Promise<void>
, indicating successful completion of the operation without a return value.
Example Usage
await setItem('session_key', 'session_value')