fix
This commit is contained in:
parent
ec5d33743d
commit
7e866b3f1f
15
client.go
15
client.go
@ -9,15 +9,16 @@ package redis
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"git.zhangdeman.cn/zhangdeman/redis/abstract"
|
|
||||||
"git.zhangdeman.cn/zhangdeman/redis/define"
|
|
||||||
"git.zhangdeman.cn/zhangdeman/wrapper"
|
|
||||||
"github.com/pkg/errors"
|
|
||||||
redisClient "github.com/redis/go-redis/v9"
|
|
||||||
"go.uber.org/zap"
|
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"git.zhangdeman.cn/zhangdeman/redis/abstract"
|
||||||
|
"git.zhangdeman.cn/zhangdeman/redis/define"
|
||||||
|
wrapperOperate "git.zhangdeman.cn/zhangdeman/wrapper"
|
||||||
|
"github.com/pkg/errors"
|
||||||
|
redisClient "github.com/redis/go-redis/v9"
|
||||||
|
"go.uber.org/zap"
|
||||||
)
|
)
|
||||||
|
|
||||||
var Client abstract.IRedisClient
|
var Client abstract.IRedisClient
|
||||||
@ -67,7 +68,7 @@ func (o *OwnClient) Exec(ctx context.Context, instanceFlag string, command strin
|
|||||||
}
|
}
|
||||||
argStrList := make([]string, 0)
|
argStrList := make([]string, 0)
|
||||||
for _, itemArg := range args {
|
for _, itemArg := range args {
|
||||||
argStrList = append(argStrList, wrapper.AnyDataType(itemArg).ToString().Value())
|
argStrList = append(argStrList, wrapperOperate.AnyDataType(itemArg).ToString().Value())
|
||||||
cmdParamList = append(cmdParamList, itemArg)
|
cmdParamList = append(cmdParamList, itemArg)
|
||||||
}
|
}
|
||||||
res := &define.RedisResult{
|
res := &define.RedisResult{
|
||||||
|
Loading…
Reference in New Issue
Block a user