HIMPORT DISCARD

HIMPORT DISCARD fieldset-name
Available since:
Redis Open Source 8.10.0
Time complexity:
O(N) where N is the number of session-local fieldsets.
ACL categories:
@hash, @slow,
Compatibility:
Redis Software and Redis Cloud compatibility

Removes a single session-local fieldset, previously defined with HIMPORT PREPARE, from the current connection.

Required arguments

fieldset-name

The name of the fieldset to remove from the current connection.

Examples

> HIMPORT PREPARE u name email age
OK
> HIMPORT DISCARD u
(integer) 1
> HIMPORT DISCARD u
(integer) 0

Details

Discarding a fieldset only removes the fieldset itself; it does not affect any hashes already created from it with HIMPORT SET.

Use HIMPORT DISCARD to free up resources on the connection once a bulk-ingestion job that used a given fieldset has finished. If you don't discard it, the fieldset stays allocated on the connection until the connection closes or the client issues the RESET command.

Redis Software and Redis Cloud compatibility

Redis
Software
Redis
Cloud
Notes
❌ Standard
❌ Active-Active
❌ Standard
❌ Active-Active

Return information

Integer reply: 1 if the fieldset was removed, or 0 if no fieldset with that name existed on the connection.

See also

HIMPORT PREPARE | HIMPORT DISCARDALL

RATE THIS PAGE
Back to top ↑