kevy4.0

HSCAN

Iterate a hash's fields and values (single-batch cursor).

HSCAN key cursor [MATCH pattern] [COUNT count]
Group
Hash
Since
1.0.0
Arity
at least 3
Flags
readonly

Complexity

O(N) — the whole hash is copied and returned in one batch

Complexity and compatibility are read out of kevy's implementation, not copied from Redis's reference. Several genuinely differ.

Redis compatibility

Differs

not a cursor iterator — the cursor is always 0 and the entire hash comes back in a single reply; NOVALUES is not parsed and COUNT is validated then ignored

See also

HDELHEXISTSHEXPIREHGETHGETALLHINCRBYHKEYSHLENHMGETHMSETHPERSISTHPEXPIREHPEXPIREATHPTTLHSETHSETNXHTTLHVALS

← All commands