获取配置(从内存缓存)
(self, key: str, default: Any = None)
| 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 | """获取所有配置(从内存缓存)""" |
nothing calls this directly
no test coverage detected