â–¸ setStorageSync(key, data): void
description To store data in the local cache key In. Will overwrite the original key The
corresponding content. Data is always available unless the user actively deletes it or the system
cleans it for storage reasons. single key The maximum length of data allowed to be stored is 1 MB,
all data storage capped at 10MB.
example
Code
Parameters
| Name | Type |
|---|---|
key | string |
data | unknown |
Returns
void
Was this page helpful?
Last modified on