objlen 수정

This commit is contained in:
2023-07-16 17:01:06 +09:00
parent 592112219e
commit 99834c1461

View File

@ -331,7 +331,10 @@ func (rh *RedisonHandler) JSONObjLen(key, path string) ([]int64, error) {
args := []any{
"JSON.OBJLEN",
key,
path,
}
if path != "$" {
args = append(args, path)
}
return respToArray[int64](rh.Do(rh.ctx, args...).Result())