Storage
Each mini program can have its own local cache, which can be accessed throughwx.setStorage/wx.setStorageSync、wx.getStorage/wx.getStorageSync、wx.clearStorage/wx.clearStorageSync, wx.removeStorage/wx.removeStorageSyncRead, write and clean up the local cache.
Isolation strategy
Storage is isolated by user dimension. On the same device, user A cannot read the data of user B; different mini-programs cannot read and write data to each other. The storage limit for the same user and the same mini-program is 10MB.
Cleanup strategy
The cleaning time of the local cache is the same as that of the code package. The local cache will only be cleaned when the code package is cleaned.