Skip to content

Ask the HotKV docs

Answers come only from these docs and can be wrong; check the linked pages before you rely on them.

HIMPORT DISCARD

Last updated
HIMPORT DISCARD name
Group
Hash
Arity
3 (exactly, counting the command name)
HotKV Cloud
All plans
On-Premise
no license needed

HIMPORT DISCARD forgets the list of field names stored under name by HIMPORT PREPARE. Hashes already made from it are not changed.

Integer 1 if the list existed, 0 if not, in RESP2 and RESP3.

127.0.0.1:6379> HIMPORT DISCARD person
(integer) 1
127.0.0.1:6379> HIMPORT SET account:5 person a b c
(error) ERR no such fieldset
127.0.0.1:6379> HIMPORT DISCARD person
(integer) 0

A Redis 8.10 command.

HIMPORT DISCARDALL, HIMPORT PREPARE, HIMPORT