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 DISCARDALL

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

HIMPORT DISCARDALL forgets all the lists of field names that this connection prepared with HIMPORT PREPARE. Hashes already made from them are not changed.

Integer: the number of lists forgotten, in RESP2 and RESP3.

127.0.0.1:6379> HIMPORT PREPARE a x y
OK
127.0.0.1:6379> HIMPORT PREPARE b p q
OK
127.0.0.1:6379> HIMPORT DISCARDALL
(integer) 2
127.0.0.1:6379> HIMPORT SET account:6 a 1 2
(error) ERR no such fieldset
127.0.0.1:6379> HIMPORT DISCARDALL
(integer) 0

A Redis 8.10 command.

HIMPORT DISCARD, HIMPORT PREPARE, HIMPORT