Skip to content

支付宝兼容矩阵 · 数据缓存

数据缓存

batchGetStorage

unsupported

批量异步读取缓存。

支付宝目标方法

batchGetStorage

策略说明

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

batchGetStorageSync

unsupported

批量同步读取缓存。

支付宝目标方法

batchGetStorageSync

策略说明

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

batchSetStorage

unsupported

批量异步写入缓存。

支付宝目标方法

batchSetStorage

策略说明

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

batchSetStorageSync

unsupported

批量同步写入缓存。

支付宝目标方法

batchSetStorageSync

策略说明

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

clearStorage

native

支付宝目标方法

clearStorage

策略说明

  • 微信:直连 `wx.clearStorage`
  • 支付宝:直连 `my.clearStorage`

clearStorageSync

native

支付宝目标方法

clearStorageSync

策略说明

  • 微信:直连 `wx.clearStorageSync`
  • 支付宝:直连 `my.clearStorageSync`

createBufferURL

unsupported

创建缓冲区 URL。

支付宝目标方法

createBufferURL

策略说明

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

createCacheManager

unsupported

创建缓存管理器。

支付宝目标方法

createCacheManager

策略说明

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

getStorage

native

支付宝目标方法

getStorage

策略说明

  • 微信:直连 `wx.getStorage`
  • 支付宝:直连 `my.getStorage`

getStorageInfo

native

支付宝目标方法

getStorageInfo

策略说明

  • 微信:直连 `wx.getStorageInfo`
  • 支付宝:直连 `my.getStorageInfo`

getStorageInfoSync

native

支付宝目标方法

getStorageInfoSync

策略说明

  • 微信:直连 `wx.getStorageInfoSync`
  • 支付宝:直连 `my.getStorageInfoSync`

getStorageSync

native

支付宝目标方法

getStorageSync

策略说明

  • 微信:直连 `wx.getStorageSync`
  • 支付宝:直连 `my.getStorageSync`

removeStorage

native

支付宝目标方法

removeStorage

策略说明

  • 微信:直连 `wx.removeStorage`
  • 支付宝:直连 `my.removeStorage`

removeStorageSync

native

支付宝目标方法

removeStorageSync

策略说明

  • 微信:直连 `wx.removeStorageSync`
  • 支付宝:直连 `my.removeStorageSync`

revokeBufferURL

unsupported

释放缓冲区 URL。

支付宝目标方法

revokeBufferURL

策略说明

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

setStorage

native

支付宝目标方法

setStorage

策略说明

  • 微信:直连 `wx.setStorage`
  • 支付宝:直连 `my.setStorage`

setStorageSync

native

支付宝目标方法

setStorageSync

策略说明

  • 微信:直连 `wx.setStorageSync`
  • 支付宝:直连 `my.setStorageSync`

Released under the MIT License.