HIMPORT DISCARDALL
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.
Return value
Section titled “Return value”Integer: the number of lists forgotten, in RESP2 and RESP3.
Examples
Section titled “Examples”127.0.0.1:6379> HIMPORT PREPARE a x yOK127.0.0.1:6379> HIMPORT PREPARE b p qOK127.0.0.1:6379> HIMPORT DISCARDALL(integer) 2127.0.0.1:6379> HIMPORT SET account:6 a 1 2(error) ERR no such fieldset127.0.0.1:6379> HIMPORT DISCARDALL(integer) 0Compatibility
Section titled “Compatibility”A Redis 8.10 command.
See also
Section titled “See also”Was this page helpful?
Thanks for the feedback.