
# 获取指定key值的缓存
扫码体验：
![](https://support.huaweicloud.com/devg-welink/figure/zh-cn_image_0000001435347696.png "点击放大")
#### 请求参数
| **参数**    | **类型** | **必填** | **说明**                              |
|:---|:---|:---|:---|
| 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**
[支持版本\>=10.0.5](https://open.welink.huaweicloud.com/docs/#/990hh0/whokyc/fa5obu)
