Incrementally iterate hash fields and associated values.

    .. versionadded:: 2017.7.0

    CLI Example:

    .. code-block:: bash

        salt '*' redis.hscan foo_hash match='field_prefix_*' count=1

def hscan(key, cursor=0, match=None, count=None, host=None, port=None, db=None, password=None):
    '''
    Incrementally iterate hash fields and associated values.

    .. versionadded:: 2017.7.0

    CLI Example:

    .. code-block:: bash

        salt '*' redis.hscan foo_hash match='field_prefix_*' count=1
    '''
    server = _connect(host, port, db, password)
    return server.hscan(key, cursor=cursor, match=match, count=count)