Skip to main content
Use this API to store data with a specified key in local cache. Overwrites existing data with the same key.

Parameters

Limits

  • Single data item: max 200KB
  • Total storage per Mini Program: max 10MB

Code Example

my.getStorage

Get stored data

my.setStorageSync

Store data synchronously