mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-17 14:50:26 +08:00
feat: 优化
This commit is contained in:
@@ -171,7 +171,7 @@ func (r *Redis) SetHashValue(rc *ctx.ReqCtx) {
|
||||
ri.Cli.Del(key)
|
||||
for _, v := range hashValue.Value {
|
||||
res := ri.Cli.HSet(key, v["key"].(string), v["value"])
|
||||
biz.ErrIsNilAppendErr(res.Err(), "保存hash值失败")
|
||||
biz.ErrIsNilAppendErr(res.Err(), "保存hash值失败: %s")
|
||||
}
|
||||
if hashValue.Timed != -1 {
|
||||
ri.Cli.Expire(key, time.Second*time.Duration(hashValue.Timed))
|
||||
|
||||
Reference in New Issue
Block a user