Sometime after v4.2.5, the result of code like this changed to return an array instead of the hash expected from hgetall:
result = r.pipelined do |p|
p.multi do |m|
m.hmset("hash", "field", "value", "field2", "value2")
m.hgetall("hash")
end
end
> result
=> ["OK", "QUEUED", "QUEUED", ["OK", ["field", "value", "field2", "value2"]]]
This wrong return value occurs on the 4.x and master branches
Sometime after v4.2.5, the result of code like this changed to return an array instead of the hash expected from
hgetall
:This wrong return value occurs on the
4.x
andmaster
branches