HSCAN

Iterates over a hash's fields and values using a cursor.

Hashes · Example verified

Syntax covered here

HSCAN key cursor

Start with cursor 0; the small tested hash completes in one batch with a terminal cursor.

Tested example & replies

Requests below run in order against an empty database. Each connection authenticates with the fixture password first. Quoted values are strings; null is a nil reply; arrays preserve RESP order.

# connection: default
> HSET user name Ada
1
# connection: default
> HSCAN user 0
["0",["name","Ada"]]