module Redis::Commands::Hashes

def hscan_each(key, **options, &block)

Returns:
  • (Enumerator) - an enumerator for all found keys

Parameters:
  • options (Hash) --

Other tags:
    Example: Retrieve all of the key/value pairs in a hash -
def hscan_each(key, **options, &block)
  return to_enum(:hscan_each, key, **options) unless block_given?
  cursor = 0
  loop do
    cursor, values = hscan(key, cursor, **options)
    values.each(&block)
    break if cursor == "0"
  end
end