Skip to content

API 全量清单 · 数据缓存

数据缓存

batchSetStorage

⚠️

批量异步写入缓存。

大概用法

三端策略

  • 微信:直连 `wx.batchSetStorage`
  • 支付宝:无同等 API,调用时按 unsupported 报错
  • 抖音:无同等 API,调用时按 unsupported 报错

batchGetStorage

⚠️

批量异步读取缓存。

大概用法

三端策略

  • 微信:直连 `wx.batchGetStorage`
  • 支付宝:无同等 API,调用时按 unsupported 报错
  • 抖音:无同等 API,调用时按 unsupported 报错

batchSetStorageSync

⚠️

批量同步写入缓存。

大概用法

三端策略

  • 微信:直连 `wx.batchSetStorageSync`
  • 支付宝:无同等 API,调用时按 unsupported 报错
  • 抖音:无同等 API,调用时按 unsupported 报错

batchGetStorageSync

⚠️

批量同步读取缓存。

大概用法

三端策略

  • 微信:直连 `wx.batchGetStorageSync`
  • 支付宝:无同等 API,调用时按 unsupported 报错
  • 抖音:无同等 API,调用时按 unsupported 报错

createBufferURL

⚠️

创建缓冲区 URL。

大概用法

三端策略

  • 微信:直连 `wx.createBufferURL`
  • 支付宝:无同等 API,调用时按 unsupported 报错
  • 抖音:无同等 API,调用时按 unsupported 报错

createCacheManager

⚠️

创建缓存管理器。

大概用法

三端策略

  • 微信:直连 `wx.createCacheManager`
  • 支付宝:无同等 API,调用时按 unsupported 报错
  • 抖音:无同等 API,调用时按 unsupported 报错

revokeBufferURL

⚠️

释放缓冲区 URL。

大概用法

三端策略

  • 微信:直连 `wx.revokeBufferURL`
  • 支付宝:无同等 API,调用时按 unsupported 报错
  • 抖音:无同等 API,调用时按 unsupported 报错

Released under the MIT License.