Skip to content

Commit 27a57b1

Browse files
committed
changed redis to glide
1 parent 54a16ea commit 27a57b1

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

java/README.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ Maven (AARCH_64) specific.
120120

121121
```java
122122
// You can run this example code in the Main.
123-
import glide.api.RedisClient;
123+
import glide.api.GlideClient;
124124
import glide.api.models.configuration.NodeAddress;
125-
import glide.api.models.configuration.RedisClientConfiguration;
125+
import glide.api.models.configuration.GlideClientConfiguration;
126126
import java.util.concurrent.ExecutionException;
127127

128128
import static glide.api.models.GlideString.gs;
@@ -138,16 +138,15 @@ public class Main {
138138
Integer port = 6379;
139139
boolean useSsl = false;
140140

141-
RedisClientConfiguration config =
142-
RedisClientConfiguration.builder()
141+
GlideClientConfiguration config =
142+
GlideClientConfiguration.builder()
143143
.address(NodeAddress.builder().host(host).port(port).build())
144144
.useTLS(useSsl)
145145
.build();
146146

147147
try {
148148
Glide client = GlideClient.CreateClient(config).get();
149149

150-
// TODO wait for this PR to get merged https://github.com/aws/glide-for-redis/pull/1663/ for PING to work.
151150
System.out.println("PING: " + client.ping(gs("PING")).get());
152151
System.out.println("PING(found you): " + client.ping( gs("found you")).get());
153152

@@ -166,9 +165,9 @@ public class Main {
166165
### Cluster Valkey:
167166
```java
168167
// You can run this example code in the Main.
169-
import glide.api.RedisClusterClient;
168+
import glide.api.GlideClusterClient;
170169
import glide.api.models.configuration.NodeAddress;
171-
import glide.api.models.configuration.RedisClusterClientConfiguration;
170+
import glide.api.models.configuration.GlideClusterClientConfiguration;
172171
import glide.api.models.configuration.RequestRoutingConfiguration;
173172

174173
import java.util.concurrent.ExecutionException;
@@ -198,9 +197,8 @@ public class Main {
198197
.build();
199198

200199
try {
201-
RedisClusterClient client = RedisClusterClient.CreateClient(config).get();
200+
GlideClusterClient client = GlideClusterClient.CreateClient(config).get();
202201

203-
// TODO wait for this PR to get merged https://github.com/aws/glide-for-redis/pull/1663/ for PING to work.
204202
System.out.println("PING: " + client.ping(gs("PING")).get());
205203
System.out.println("PING(found you): " + client.ping( gs("found you")).get());
206204

@@ -229,6 +227,6 @@ The following arguments are accepted:
229227
* `concurrentTasks`: Number of concurrent tasks
230228
* `clients`: one of: all|jedis|lettuce|glide
231229
* `clientCount`: Client count
232-
* `host`: redis server host url
233-
* `port`: redis server port number
234-
* `tls`: redis TLS configured
230+
* `host`: glide server host url
231+
* `port`: glide server port number
232+
* `tls`: glide TLS configured

0 commit comments

Comments
 (0)