Skip to content

Commit

Permalink
Java: Minor readme update (valkey-io#1840)
Browse files Browse the repository at this point in the history
* Java: rename CreateClient to createClient

---------

Signed-off-by: Andrew Carbonetto <[email protected]>
Co-authored-by: aaron-congo <[email protected]>
  • Loading branch information
acarbonetto and aaron-congo authored Jul 6, 2024
1 parent ebdd8b5 commit 8049a73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 2 additions & 4 deletions java/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,7 @@ public class Main {
.useTLS(useSsl)
.build();

try {
Glide client = GlideClient.CreateClient(config).get();
try (GlideClient client = GlideClient.createClient(config).get()) {

System.out.println("PING: " + client.ping(gs("PING")).get());
System.out.println("PING(found you): " + client.ping( gs("found you")).get());
Expand Down Expand Up @@ -227,8 +226,7 @@ public class Main {
.useTLS(useSsl)
.build();

try {
GlideClusterClient client = GlideClusterClient.CreateClient(config).get();
try (GlideClusterClient client = GlideClusterClient.createClient(config).get()) {

System.out.println("PING: " + client.ping(gs("PING")).get());
System.out.println("PING(found you): " + client.ping( gs("found you")).get());
Expand Down
3 changes: 1 addition & 2 deletions java/examples/src/main/java/glide/examples/ExamplesApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ private static void runGlideExamples() {
.useTLS(useSsl)
.build();

try {
RedisClient client = RedisClient.createClient(config).get();
try (RedisClient client = RedisClient.createClient(config).get()) {

System.out.println("PING: " + client.ping().get());
System.out.println("PING(found you): " + client.ping("found you").get());
Expand Down

0 comments on commit 8049a73

Please sign in to comment.