Skip to content

Remove superfluous try catch blocks from Jedis*Commands #1960

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

Closed
wants to merge 5 commits into from

Conversation

mp911de
Copy link
Member

@mp911de mp911de commented Feb 8, 2021

Remove superfluous try catch blocks from Jedis*Commands with JedisInvoker. Refactor Converters and JedisConverters to use less indirections and use lambdas/method references where possible.

Closes #1951

Prefer lambda-style converters. Replace indirections via Converters API with method references.
@mp911de mp911de added in: jedis Jedis driver type: task A general task labels Feb 8, 2021
@mp911de mp911de changed the title Issue/1951 Remove superfluous try catch blocks from Jedis*Commands Feb 8, 2021
christophstrobl pushed a commit that referenced this pull request Feb 10, 2021
We now use JedisInvoker to call Jedis and Pipeline methods for synchronous, pipelining, and transactional execution models. JedisInvoker captures the method invocation as functional utility and allows conversion of results:

Long result = invoker.just(BinaryJedis::geoadd, MultiKeyPipelineBase:geoadd, key, point.getX(), point.getY(), member);

Closes #1951
Original Pull Request: #1960
christophstrobl pushed a commit that referenced this pull request Feb 10, 2021
Prefer lambda-style converters. Replace indirections via Converters API with method references.

Original Pull Request: #1960
christophstrobl added a commit that referenced this pull request Feb 10, 2021
Move the no op identity converter to Converters and reuse those across the connection package.
Fix nullables and minor code format issues along the way.

See: #1951
Original Pull Request: #1960
@christophstrobl christophstrobl deleted the issue/1951 branch February 10, 2021 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: jedis Jedis driver type: task A general task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove superfluous try catch blocks from Jedis*Commands
2 participants