I have a hash in Redis named "match/123/result".
I am adding entries to this hash using HSET
and retrieving all entries at once using HGETALL
.
I want to flush this hash, but there is no command like "HDELALL" (in redis-cli
).
I am therefore using DEL
to remove the hash name, like this:
DEL match/123/result
I could find only this approach to removing everything (hash and its contents) at once. Is there any other solution?