HSCAN · Valkey

HSCAN

Iterates over fields and values of a hash.

Usage

HSCAN key cursor [MATCH pattern] [COUNT count] [NOVALUES]

See SCAN for HSCAN documentation.

Reply

Array reply: a two-element array.

Complexity

O(1) for every call. O(N) for a complete iteration, including enough command calls for the cursor to return back to 0. N is the number of elements inside the collection.

ACL Categories

@hash @read @slow

History

See also

HDEL, HEXISTS, HEXPIRE, HEXPIREAT, HEXPIRETIME, HGET, HGETALL, HGETDEL, HGETEX, HINCRBY, HINCRBYFLOAT, HKEYS, HLEN, HMGET, HMSET, HPERSIST, HPEXPIRE, HPEXPIREAT, HPEXPIRETIME, HPTTL, HRANDFIELD, HSET, HSETEX, HSETNX, HSTRLEN, HTTL, HVALS.