JSONArrAppend 호출 오류 수정

This commit is contained in:
2023-10-12 12:03:11 +09:00
parent 9c3d761d97
commit 0fb806bfda
2 changed files with 11 additions and 2 deletions

View File

@ -312,11 +312,13 @@ func (rh *RedisonHandler) JSONStrLen(key, path string) (res []int64, err error)
}
func (rh *RedisonHandler) JSONArrAppend(key, path string, values ...any) (int64, error) {
args := []any{
args := appendArgs[any]([]any{
"JSON.ARRAPPEND",
key,
path,
}
}, values...)
args = append(args, values...)
resp, err := rh.Do(rh.ctx, args...).Result()
if err != nil {
return 0, err