更新时间:2023-12-18 GMT+08:00
获取指定key值的缓存
扫码体验:

请求参数
参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
key | String | 是 | 存、取缓存数据的key |
isolation | Number | 否 | 跨租户时应用的数据是否需要隔离,1 隔离, 0 不隔离,不传默认不隔离 |
返回结果
参数 | 说明 |
|---|---|
data | 缓存的数据 |
请求示例
- ES6版本
HWH5.getStorage({ key: 'bulletin_detail_c00299309_10010', isolation: 1 }) .then(data => { console.log(data); }) .catch(error => { console.log('获取缓存异常', error); });
- ES5版本
HWH5.getStorage({ key: 'bulletin_detail_c00299309_10010', isolation: 1 }) .then(function (data) { console.log(data); }) .catch(function (error) { console.log('获取缓存异常', error); });
HWH5.clearStorage
父主题:缓存管理

