I was going through the Redis documentation and experimenting with Redis and came across HSET
and HMSET
commands. And I could not find any difference between them, I tried searching, and found the following question,
What is the difference between HSET and HMSET method in Redis database
and accepted answer states :
HMSET is like HSET, but it allows multiple field/value pairs to be set at once.
But when I tried, HSET also allows multiple field/value pairs to be set at once.
Please see the screenshot below, to me, it seems both work same:
Can anyone please explain to me the difference between the two. Or the use cases, where one should be used over the other.
Thanks