Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

WeChat program storage


May 17, 2021 WeChat Mini Program Development Document


Table of contents


Store

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.

Isolation policy

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;

Clean-up strategy

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.