modify: 清除diskcache依赖

This commit is contained in:
2026-09-04 14:50:34 +08:00
parent eaf4089b6f
commit 93be99141f
15 changed files with 522 additions and 88 deletions
+13 -11
View File
@@ -11,8 +11,9 @@ upload_path = "uploads"
json5_path = "./config/zenoh_config.json5"
[cache]
backend = "diskcache" # "diskcache"(默认) | "redis"
cache_store_path = "./cache_data"
# backend = "sqlite" # "sqlite"(默认,本机共享) | "redis"(跨主机)
backend = "redis"
# path = "./cache_data/cache.db"
# 启动时该类 worker 的全局副本数优先来源(指 config/workers/<type>/config.toml 的 count):
# "toml" (默认) = 经典模式:启动时用 toml 的 count 覆盖 cache 并写回为新的全局总量
@@ -20,11 +21,11 @@ cache_store_path = "./cache_data"
launch_worker_count = "toml"
# redis 后端专用(backend = "redis" 时生效,均有默认值)
# redis_host = "127.0.0.1"
# redis_port = 6379
# redis_db = 0
# redis_password = ""
# redis_prefix = "chongming:"
redis_host = "127.0.0.1"
redis_port = 6379
redis_db = 0
redis_password = ""
redis_prefix = "chongming:"
[security]
algorithm = "HS256"
@@ -63,13 +64,15 @@ allow_origins = [
[development.mqtt]
enabled = true
host = "0.0.0.0"
# host = "0.0.0.0"
host = "127.0.0.1"
port = 1883
# 是否由网关启动内嵌 amqtt Broker 子进程:
# true (默认)= 网关自带 amqtt Broker,host/port 为 Broker 监听地址
# false = 使用外部 MQTT Broker,网关仅启动 Bridge 客户端连接
# host/port 需指向外部 Broker 地址(如 "192.168.1.10")
use_embedded_broker = true
# use_embedded_broker = true
use_embedded_broker = false
# MQTT Broker 认证(可选,默认匿名):
# - 内嵌 Broker(use_embedded_broker=true):配置后要求所有客户端(含网关 Bridge)
# 用该账号密码连接,未配置则保持匿名
@@ -110,10 +113,9 @@ base = [
"fastapi.middleware.cors",
"fastapi.middleware.gzip",
"uvicorn",
"diskcache",
"chongming_cache",
"chongming_cache.backends",
"chongming_cache.backends.disk",
"chongming_cache.backends.sqlite_",
"orjson",
"python_multipart",
"volcenginesdkarkruntime",