JSONArrAppend 수정
This commit is contained in:
3
redis.go
3
redis.go
@ -312,13 +312,12 @@ func (rh *RedisonHandler) JSONStrLen(key, path string) (res []int64, err error)
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (rh *RedisonHandler) JSONArrAppend(key, path string, values ...any) (int64, error) {
|
func (rh *RedisonHandler) JSONArrAppend(key, path string, values ...any) (int64, error) {
|
||||||
args := appendArgs[any]([]any{
|
args := appendValues([]any{
|
||||||
"JSON.ARRAPPEND",
|
"JSON.ARRAPPEND",
|
||||||
key,
|
key,
|
||||||
path,
|
path,
|
||||||
}, values...)
|
}, values...)
|
||||||
|
|
||||||
args = append(args, values...)
|
|
||||||
resp, err := rh.Do(rh.ctx, args...).Result()
|
resp, err := rh.Do(rh.ctx, args...).Result()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, err
|
return 0, err
|
||||||
|
|||||||
Reference in New Issue
Block a user