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

Method get_config

src/storage/psql_manager.py:856–859  ·  view source on GitHub ↗

获取配置(从内存缓存)

(self, key: str, default: Any = None)

Source from the content-addressed store, hash-verified

854 log.info("Config cache reloaded from database")
855
856 async def get_config(self, key: str, default: Any = None) -> Any:
857 """获取配置(从内存缓存)"""
858 self._ensure_initialized()
859 return self._config_cache.get(key, default)
860
861 async def get_all_config(self) -> Dict[str, Any]:
862 """获取所有配置(从内存缓存)"""

Callers

nothing calls this directly

Calls 1

_ensure_initializedMethod · 0.95

Tested by

no test coverage detected