hincrby
1. 基本語法
(1) hincrby(hkey
, subkey
,increment:<integer>
,callback
)
hkey
, subkey
,increment:<integer>
,callback
) 若hkey
以及subkey
存在,且對應資料的字符串內容為「整數」形式,則該整數值增加increment
單位。
(2) hincrbyfloat(hkey
, subkey
,increment:<number>
,callback
)
hkey
, subkey
,increment:<number>
,callback
) 若hkey
以及subkey
存在,且對應資料的字符串內容為「整數」或「浮點數」形式,則該數字值增加increment
單位。
Last updated
Was this helpful?