# setMaxCacheFileCount (/zh-CN/api-reference/rtc/harmonyos/api-imediaplayercachemanager-setmaxcachefilecount)
> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).
## 参数 [#参数]
### `count` [#count]
可缓存的媒体文件数量的上限,默认值为 1000。
## 返回值 [#返回值]
- 0:方法调用成功。
- < 0:方法调用失败,详见 [MediaPlayerReason](/zh-CN/api-reference/rtc/harmonyos/enum-mediaplayerreason)。