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