redis-mock icon indicating copy to clipboard operation
redis-mock copied to clipboard

HSET should allow multiple field/value pairs

Open dbrekalo opened this issue 4 years ago • 1 comments

As of Redis 4.0.0, HSET is variadic and allows for multiple field/value pairs.

HSET myhash field1 "Hello" field2 "World"

This is currently not supported in redis-mock?

dbrekalo avatar Feb 15 '21 22:02 dbrekalo

@kamiljano @yeahoffline As per the documentation, HMSET is deprecated and HSET is upgraded to handle the exact same functionality as HMSET.

As of Redis 4.0.0, HSET is variadic and allows for multiple field/value pairs. As per Redis 4.0.0, HMSET is considered deprecated. Please prefer HSET in new code.

Made the code changes as part of #182

dbhat6 avatar Mar 01 '21 16:03 dbhat6