HIMPORT

Since 1.1.0Hashes

Syntax

HIMPORT
  • Flags: movablekeys, write
  • ACL categories: @hash, @slow, @write
  • Arity: -2

Loads many hashes that have the same fields, without sending the field names for each: a command of Redis 8.10. A client first names a list of fields, a fieldset, with HIMPORT PREPARE, then creates hashes from it with HIMPORT SET, giving only the values.

Fieldsets belong to the connection that made them, and go when it closes.

Subcommands

  • HIMPORT DISCARD: Forgets the fieldset named fieldset on this connection.
  • HIMPORT PREPARE: Defines a fieldset named fieldset on this connection: the field names that HIMPORT SET gives values for, in order.
  • HIMPORT SET: Creates the hash at key from a fieldset this connection prepared, with one value per field in the fieldset's order.