-
Notifications
You must be signed in to change notification settings - Fork 0
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
Java benchmarks app: Add TLS flag to Lettuce/Jedis benchmarks #9
Conversation
RedisURI uri = RedisURI.builder() | ||
.withHost(host) | ||
.withPort(port) | ||
.withSsl(tls) | ||
.build(); | ||
client = RedisClient.create("redis://" + host + ":" + port); |
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.
uri
is not used, so it should be
RedisURI uri = RedisURI.builder() | |
.withHost(host) | |
.withPort(port) | |
.withSsl(tls) | |
.build(); | |
client = RedisClient.create("redis://" + host + ":" + port); | |
client = RedisClient.create((tls ? "rediss" : "redis") + "://" + host + ":" + port); |
or maybe better with String.format
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.
Sorry, that's a miss. It should be:
client = RedisClient.create(uri);
bed8235
to
c542597
Compare
Probably, you need to rebase/merge one more time to clean up the PR |
Signed-off-by: acarbonetto <[email protected]>
Signed-off-by: acarbonetto <[email protected]>
Signed-off-by: acarbonetto <[email protected]>
Signed-off-by: acarbonetto <[email protected]>
This reverts commit d9b26a6.
Signed-off-by: acarbonetto <[email protected]>
* Add a java app to run benchmarks --------- Signed-off-by: acarbonetto <[email protected]>
Signed-off-by: acarbonetto <[email protected]>
Signed-off-by: acarbonetto <[email protected]>
Signed-off-by: acarbonetto <[email protected]>
31e89f7
to
2d09685
Compare
Closing this Pull Request, and going to cherry pick changes into a new branch. Changes from this pull request got messed up from Yury's changes. |
Now the benchmark app takes a tls flag (without argument) to pass to the Lettuce/Jedis clients.
Example: