A key that holds many field-value pairs, cheaper to update in one piece.

A Redis hash keeps related fields under one key

A Redis hash maps field names to byte values under one key. It fits an entity whose attributes are read or changed independently, such as a profile with a name and score. HGET and HSET each operate in one command; using a hash does not inherently add a second network hop compared with a string. ...

March 13, 2027 · 6 min · XB Field Notes