# getGlobalAppCache 获取APP内存中存储的数据

获取指定键全局缓存,先从内存中获取,如果没有则从磁盘中获取,如果都没有则返回空(数据共享权限范围:app内)

# Attributes

属性 类型 必要 默认值 说明
key String Y -

# 调用示例

// Promise 方式
window.bridge.getGlobalAppCache('noMoreReminder').then(res => {
    console.log(res)
}).catch(err => {
    console.log(err)
})

# 接口返回示例

// 返回对应 key 的值,不存在则返回 null
"value"