tencent cloud

Last updated: 2025-02-24 17:10:39
Storage
Last updated: 2025-02-24 17:10:39
Each mini program can have its own local storage. You can read, write, and clear local storage using the following APIs: setStorage/setStorageSync,getStorage/getStorageSync,clearStorage/clearStorageSync,removeStorage/removeStorageSync.

Isolation policy

Storage is isolated by user. On the same device, User A cannot read User B's data. Additionally, different mini programs cannot read or write each other's data. For the same user, the storage space for the same mini app can be up to 10 MB.

Cleanup strategy

The local cache is cleared at the same time as the code package. This means that local cache will only be cleared when the code package is cleared.



Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback