Closed viralpraxis closed 1 year ago
Gem version: 0.37.0
0.37.0
Hi! I'm not sure if it was already mentioned in earlier issues. I observe that performing call inside pipeline raises an exception:
call
redis_client = MockRedis.new results = redis_client.pipelined do |pipeline| pipeline.call(["expire", "foobar", 42]) end results[0] # => #<NoMethodError: undefined method `call' for #<MockRedis::Database:0x000055cbbadfa328>
Ordinary operations do work as expected:
redis_client.call(["set", "foobar", 42]) # => "OK" redis_client.call(["expire", "foobar", 42]) # => true
And original redis-client (4.5.1) works as expected too:
redis-client
redis_client.pipelined do |pipeline| pipeline.call(["set", "foobar", "val"]) pipeline.call(["expire", "foobar", 1337]) pipeline.call(["ttl", "foobar"]) end =begin [ [0] "OK", [1] 1, [2] 1337 ] =end
Could you please clarify it it's an unimplemented feature or a bug?
Likely was never supported. Happy to merge a PR adding support!
Gem version:
0.37.0
Hi! I'm not sure if it was already mentioned in earlier issues. I observe that performing
call
inside pipeline raises an exception:Ordinary operations do work as expected:
And original
redis-client
(4.5.1) works as expected too:Could you please clarify it it's an unimplemented feature or a bug?