-
Notifications
You must be signed in to change notification settings - Fork 65
add flag to disable raising exceptions with pipelined #187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add flag to disable raising exceptions with pipelined #187
Conversation
0aa2d59
to
1aef7eb
Compare
dd702ca
to
af56b57
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A bunch of nitpicks on the API, but overall the feature seem nice to me 👍
af56b57
to
54f18fc
Compare
lib/redis_client.rb
Outdated
@timeouts = nil | ||
@raise_exception = raise_exception |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@casperisfine should these also be renamed to exception
. I feel like exception
would be more suitable for an exception object itself and not a boolean flag such as raise_exception
. What do you think?
8e0d595
to
729faea
Compare
729faea
to
662d269
Compare
Modifying the
pipelined
method inlib/redis_client.rb
to include an optionalexception
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.