modify: diskcache 缓存替换

This commit is contained in:
2026-04-13 15:55:12 +08:00
parent 6685bdb9a8
commit ee0a5cf0f6
26 changed files with 824 additions and 288 deletions
+2 -3
View File
@@ -1,7 +1,7 @@
# main.py - 修复 reload 问题
#!/usr/bin/env python3
"""
FastAPI + Tortoise-ORM + chongming 示例
FastAPI chongming 示例
主入口文件,适配 chongming 打包系统
"""
import sys
@@ -19,9 +19,8 @@ def app_run(app_config: dict, default_config: dict):
default_config: 默认配置
"""
import uvicorn
from app.core.logger import setup_logging, get_logger # type: ignore
from app.core.logger import get_logger # type: ignore
setup_logging(app_config["logging"])
logger = get_logger("app")
# 获取服务器配置