feat(redis): add Redis support

This commit is contained in:
InfinityPacer
2025-01-19 02:50:28 +08:00
parent 9f22ce5cc0
commit cb5c06ee7e
3 changed files with 109 additions and 27 deletions

View File

@@ -2,6 +2,7 @@ import sys
from fastapi import FastAPI
from app.core.cache import close_cache
from app.core.config import global_vars, settings
from app.core.module import ModuleManager
from app.log import logger
@@ -129,6 +130,8 @@ def shutdown_modules(_: FastAPI):
Monitor().stop()
# 停止线程池
ThreadHelper().shutdown()
# 停止缓存连接
close_cache()
# 停止数据库连接
close_database()
# 停止前端服务