---
title: BioShowCacheResource
description: "查询系统缓存资源使用情况接口，查询结果的内存资源要求使用者调用BioFreeCacheResourcePtr接口进行释放。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengboostkithistory/252RC1/sds/kunpengboostIO_029.html
sourcePath: /source/zh/kunpengboostkithistory/252RC1/sds/kunpengboostIO_029.html
indexId: 77c5d3278a39b5bf61aac209c5df46527192a8bf83319b4488e375b60f16bc6968
---
# BioShowCacheResource

#### 函数定义

查询系统缓存资源使用情况接口，查询结果的内存资源要求使用者调用BioFreeCacheResourcePtr接口进行释放。


#### 实现方法

CResult BioShowCacheResource(CacheResourcesDesc **nodeDesc, uint64_t *nodeNum)


#### 参数说明


**表1 参数说明**

| 参数名 | 数据类型 | 参数类型 | 描述 |
| --- | --- | --- | --- |
| nodeDesc | CacheResourcesDesc\*\* | 出参 | 节点缓存资源使用情况，参数解释参见表2 详细参数说明。 |
| nodeNum | uint64\_t\* | 出参 | 节点数量。 |


**表2 详细参数说明**

| 参数 | 结构体字段 | 说明 |
| --- | --- | --- |
| CacheResourcesDesc | nodeId | 节点ID。 |
| CacheResourcesDesc | rCacheMemCapacity | 读缓存内存容量。 |
| CacheResourcesDesc | rCacheDiskCapacity | 读缓存磁盘容量。 |
| CacheResourcesDesc | wCacheMemCapacity | 写缓存内存容量。 |
| CacheResourcesDesc | wCacheDiskCapacity | 写缓存磁盘容量。 |
| CacheResourcesDesc | rCacheMemUsedSize | 读缓存内存使用情况。 |
| CacheResourcesDesc | rCacheDiskUsedSize | 读缓存磁盘使用情况。 |
| CacheResourcesDesc | wCacheMemUsedSize | 写缓存内存使用情况。 |
| CacheResourcesDesc | wCacheDiskUsedSize | 写缓存磁盘使用情况。 |


#### 返回值


**表3 返回值说明**

| 返回值 | 描述 |
| --- | --- |
| RET\_CACHE\_OK | 操作成功。 |
| RET\_CACHE\_NOT\_READY | TurboIO服务未就绪。 |
| RET\_CACHE\_ERROR | 操作失败。 |
