enable_remote_cache_accessible
函数功能
在开启CacheManager场景下,配置是否开启远端Cache可直接访问功能。
开启该Option后,会在本地缓存远端Cache元数据(索引,内存地址等),从而加速Pull流程。但也会引入相关约束,详见约束说明。
函数原型
enable_remote_cache_accessible(enable_remote_cache_accessible)
参数说明
| 参数名称 | 数据类型 | 取值说明 | 
|---|---|---|
| enable_remote_cache_accessible | bool | True: 开启,False: 不开启,默认为不开启。该Option仅在开启CacheManager的场景下生效,否则将被忽略。 | 
调用示例
| 1 2 3 | from llm_datadist import LLMConfig llm_config = LLMConfig() llm_config.enable_remote_cache_accessible = True | 
返回值
无
父主题: LLMConfig