May 17, 2021 WeChat Mini Program Development Document
Each WeChat widget can have its own local cache, which can be read and cleaned through wx.setStorage / wx.setStorageSync, wx.getStorageSync, wx.clearStorageSync, wx.removeStorage / wx.setStorageSync.
For the same WeChat user, the storage limit for the same small program is 10MB. Storage is isolated by user dimensions, and on the same device, A users cannot read to B users' data;
The local cache is cleaned up at the same time as the code pack, and the local cache is cleaned only when the code package is cleaned.