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

Method get_config

src/storage/sqlite_manager.py:1150–1153  ·  view source on GitHub ↗

获取配置(从内存缓存)

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

Source from the content-addressed store, hash-verified

1148 log.info("Config cache reloaded from database")
1149
1150 async def get_config(self, key: str, default: Any = None) -> Any:
1151 """获取配置(从内存缓存)"""
1152 self._ensure_initialized()
1153 return self._config_cache.get(key, default)
1154
1155 async def get_all_config(self) -> Dict[str, Any]:
1156 """获取所有配置(从内存缓存)"""

Callers

nothing calls this directly

Calls 1

_ensure_initializedMethod · 0.95

Tested by

no test coverage detected