MCPcopy Create free account
hub / github.com/su-kaka/gcli2api / reload_config_cache

Method reload_config_cache

src/storage/sqlite_manager.py:1143–1148  ·  view source on GitHub ↗

重新加载配置缓存(在批量修改配置后调用)

(self)

Source from the content-addressed store, hash-verified

1141 return False
1142
1143 async def reload_config_cache(self):
1144 """重新加载配置缓存(在批量修改配置后调用)"""
1145 self._ensure_initialized()
1146 self._config_loaded = False
1147 await self._load_config_cache()
1148 log.info("Config cache reloaded from database")
1149
1150 async def get_config(self, key: str, default: Any = None) -> Any:
1151 """获取配置(从内存缓存)"""

Callers

nothing calls this directly

Calls 3

_ensure_initializedMethod · 0.95
_load_config_cacheMethod · 0.95
infoMethod · 0.80

Tested by

no test coverage detected