feat: 优化Redis上传操作 添加文件上传工具

使用Lua脚本确保Redis数据检测重复与插入的原子化
This commit is contained in:
2025-09-01 13:55:56 +08:00
parent b22b4786e6
commit b2c643cf73
6 changed files with 270 additions and 10 deletions

View File

@@ -30,7 +30,9 @@ func InitConfig() {
DB: 0,
},
}
viper.SetDefault("redis", defaultConf)
viper.SetDefault("host", defaultConf.Host)
viper.SetDefault("run-mode", defaultConf.RunMode)
viper.SetDefault("redis", defaultConf.Redis)
//设置配置文件名和路径 ./config.toml
viper.AddConfigPath(".")
viper.SetConfigName("config")