hscan
Last updated
Was this helpful?
Last updated
Was this helpful?
hkey
, cursor
, ['MATCH', pattern]
, ['COUNT', count]
,callback
) 針對hkey
資料進行漸進式的取值,透過MATCH
參數篩選欄位(Sub-Key)資料,該指令不保證回傳的鍵值對(Sub-Key : Value)數量,但可透過COUNT
制定最少的回傳數目,並透過新的cursor
來取得下一群資料內容,當cursor
等於'0'時,代表遍歷已結束。
Parameter
Default
pattern
'*'
count
'10'
hkey
資料若hkey
對應欄位(Sub-Key)過多,則先回傳部分資料及非零cursor,並得以透過新cursor取得下一組hkey
資料