HIMPORT PREPARE
HIMPORT PREPARE fieldset-name field [field ...]
- Available since:
- Redis Open Source 8.10.0
- Time complexity:
- O(N*log(N)) where N is the number of fields.
- ACL categories:
-
@hash,@slow, - Compatibility:
- Redis Software and Redis Cloud compatibility
Defines a session-local fieldset that maps a name to an ordered list of field names, to be used by later HIMPORT SET commands on the same connection.
Required arguments
fieldset-name
The name to give the fieldset. The fieldset is scoped to the current connection. Preparing a fieldset with a name that already exists on the connection replaces the previous definition.
field [field ...]
One or more field names to store under the fieldset, in the order you intend to supply their values to HIMPORT SET. A field name must not appear more than once in the same fieldset.
Examples
> HIMPORT PREPARE u name email age
OK
Details
A fieldset is scoped to the client connection: it is not visible to other clients and is discarded when the connection closes or the client issues the RESET command. A connection can prepare several fieldsets, each under its own name.
The command returns an error if the same field name is given more than once.
Redis Software and Redis Cloud compatibility
| Redis Software |
Redis Cloud |
Notes |
|---|---|---|
| ❌ Standard |
❌ Standard |
Return information
OK.