class Redis
def hscan(key, cursor, options={})
-
(String, Array<[String, String]>)
- the next cursor and all found keys
Parameters:
-
options
(Hash
) -- -
cursor
(String, Integer
) -- the cursor of the iteration
Other tags:
- Example: Retrieve the first batch of key/value pairs in a hash -
def hscan(key, cursor, options={}) _scan(:hscan, cursor, [key], options) do |reply| [reply[0], reply[1].each_slice(2).to_a] end end