# storage

Each WeChat Mini Program can have its own local cache, which can be accessed via wx.setStorage/[wx.setStorageSync ]((wx.setStorageSync ))、wx.getStorage/[wx.getStorageSync ]((wx.getStorageSync ))、wx.clearStorage/wx.clearStorageSyncwx.removeStorage/[wx.removeStorageSync ]((wx.removeStorageSync )) Read, write and clean the local cache.

# Isolation strategy

The same WeChat user, the same mini program storage The upper limit is 10MB。storage Isolated by user dimension, on the same device, A The user cannot read the B User's DataDifferent Mini Programs cannot read and write data to each other.

Plugin isolation policy

  1. The same Mini Program uses different plug-ins: between different plug-ins, between plug-ins and Mini Programs storage No communication.
  2. Different Mini Programs use the same plugin: same plugin storage No communication.

# Cleanup strategy

The local cache is cleaned just like the code package. The local cache is only cleaned when the code package is cleaned.