feat: 优化Redis上传操作 添加文件上传工具
使用Lua脚本确保Redis数据检测重复与插入的原子化
This commit is contained in:
@@ -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")
|
||||
|
Reference in New Issue
Block a user