# getCacheFileCount (/zh-CN/api-reference/rtc/harmonyos/api-imediaplayercachemanager-getcachefilecount)
> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).
## 返回值 [#返回值]
- ≥ 0:方法调用成功,返回当前已缓存的媒体文件的总数量。
- < 0:方法调用失败,详见 [MediaPlayerReason](/zh-CN/api-reference/rtc/harmonyos/enum-mediaplayerreason)。