my.setStorage.
Parameters
| Property | Type | Required | Description |
|---|---|---|---|
| key | String | Yes | Storage key identifier |
| data | Object/String | Yes | Data to store |
Code Example
Related APIs
my.setStorage
Store data asynchronously
my.getStorageSync
Get data synchronously
Store data in local cache synchronously.
my.setStorage.
| Property | Type | Required | Description |
|---|---|---|---|
| key | String | Yes | Storage key identifier |
| data | Object/String | Yes | Data to store |