add chongming-cache

This commit is contained in:
2026-08-17 15:16:36 +08:00
parent a99c5ebacc
commit 9d1166dcfa
7 changed files with 246 additions and 208 deletions
+11
View File
@@ -14,8 +14,16 @@ json5_path = "./config/zenoh_config.json5"
job_store_path = "scheduler_jobs.db"
[cache]
backend = "diskcache" # "diskcache"(默认) | "redis"
cache_store_path = "./cache_data"
# redis 后端专用(backend = "redis" 时生效,均有默认值)
# redis_host = "127.0.0.1"
# redis_port = 6379
# redis_db = 0
# redis_password = ""
# redis_prefix = "chongming:"
[security]
algorithm = "HS256"
secret_key = "your-secret-key-change-in-production"
@@ -76,6 +84,9 @@ base = [
"uvicorn",
"apscheduler",
"diskcache",
"chongming_cache",
"chongming_cache.backends",
"chongming_cache.backends.disk",
"orjson",
"python_multipart",
"volcenginesdkarkruntime",