添加注释,增加redis支持,添加了聊天记录构建支持
This commit is contained in:
@@ -64,6 +64,15 @@ class Config:
|
||||
"""
|
||||
return self._data.get("features", {})
|
||||
|
||||
@property
|
||||
def redis(self) -> dict:
|
||||
"""
|
||||
获取 Redis 配置
|
||||
|
||||
:return: 配置字典
|
||||
"""
|
||||
return self._data.get("redis", {})
|
||||
|
||||
|
||||
# 实例化全局配置对象
|
||||
global_config = Config()
|
||||
|
||||
Reference in New Issue
Block a user