mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-04-05 12:15:19 +08:00
review
This commit is contained in:
@@ -6,7 +6,7 @@ import (
|
||||
"mayfly-go/pkg/biz"
|
||||
"mayfly-go/pkg/ginx"
|
||||
"mayfly-go/pkg/req"
|
||||
"mayfly-go/pkg/utils/jsonx"
|
||||
"mayfly-go/pkg/utils/collx"
|
||||
"time"
|
||||
)
|
||||
|
||||
@@ -24,7 +24,7 @@ func (r *Redis) SetStringValue(rc *req.Ctx) {
|
||||
|
||||
ri := r.getRedisIns(rc)
|
||||
cmd := ri.GetCmdable()
|
||||
rc.ReqParam = jsonx.Kvs("redis", ri.Info, "string", keyValue)
|
||||
rc.ReqParam = collx.Kvs("redis", ri.Info, "string", keyValue)
|
||||
|
||||
str, err := cmd.Set(context.TODO(), keyValue.Key, keyValue.Value, time.Second*time.Duration(keyValue.Timed)).Result()
|
||||
biz.ErrIsNilAppendErr(err, "保存字符串值失败: %s")
|
||||
|
||||
Reference in New Issue
Block a user