redis / redis-rb

A Ruby client library for Redis
MIT License
3.96k stars 1.03k forks source link

add flag to disable raising exceptions with pipelined #1263

Closed philippeboyd closed 5 months ago

philippeboyd commented 5 months ago

Linked to https://github.com/redis-rb/redis-client/pull/187 Depends on https://github.com/redis-rb/redis-cluster-client/pull/343

Modifying the pipelined method in lib/redis_client.rb to include an optional exception parameter, which determines whether an exception should be raised when an error occurs during pipelining.

This gives better flexibility for error management when we want to retry only failed commands.

supercaracal commented 5 months ago

Several errors and failures in test cases of the cluster feature will be fixed with the following PR.

Although there are some discussion about the transaction feature for the cluster client, the issue is a matter on the redis-cluster-client side. So redis-rb can ignore the discussion at now.