# setGlobalAppCache 存储数据到APP内存中

设置指定键的全局缓存,可以设置到内存中,还可以内存和磁盘中都保存(数据共享权限范围:app内)

# Attributes

属性 类型 必要 默认值 说明
params Object Y -
type Boolean N false -

# 调用示例

// Promise 方式
window.bridge.setGlobalAppCache({ noMoreReminder: true }, false).then(res => {
    console.log(res)
}).catch(err => {
    console.log(err)
})

# 接口返回示例

{}