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

HGETALL in a pipeline results in an exception

Open ducharmemp opened this issue 4 months ago • 6 comments

call in a pipeline context returns nil always because the pipeline is gathering up all the results. When calling HGETALL, the protocol-redis gem wants to immediately turn the result of that call into a hash by calling each_slice(2) which explodes. Minimal repro:

REDIS.pipeline do |context|
  context.hgetall("foobar") # 💥 
end
REDIS.hgetall("foobar") # {}

ducharmemp avatar Sep 05 '25 18:09 ducharmemp