You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by on...@apache.org on 2022/02/02 20:33:31 UTC
[geode-examples] branch support/1.15 updated: GEODE-9907: Add larger timeout to JedisCluster in Redis example (#113)
This is an automated email from the ASF dual-hosted git repository.
onichols pushed a commit to branch support/1.15
in repository https://gitbox.apache.org/repos/asf/geode-examples.git
The following commit(s) were added to refs/heads/support/1.15 by this push:
new 0ba9282 GEODE-9907: Add larger timeout to JedisCluster in Redis example (#113)
0ba9282 is described below
commit 0ba9282f00d856831a7f98c1f951f064da1a7db2
Author: Donal Evans <do...@vmware.com>
AuthorDate: Fri Jan 28 17:16:43 2022 -0800
GEODE-9907: Add larger timeout to JedisCluster in Redis example (#113)
Authored-by: Donal Evans <do...@vmware.com>
(cherry picked from commit 488a43d14af80868dbe82e8ca9fecb14934fab55)
---
.../main/java/org/apache/geode_examples/geodeForRedis/Example.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/geodeForRedis/src/main/java/org/apache/geode_examples/geodeForRedis/Example.java b/geodeForRedis/src/main/java/org/apache/geode_examples/geodeForRedis/Example.java
index 956343d..e59f485 100644
--- a/geodeForRedis/src/main/java/org/apache/geode_examples/geodeForRedis/Example.java
+++ b/geodeForRedis/src/main/java/org/apache/geode_examples/geodeForRedis/Example.java
@@ -14,6 +14,7 @@
*/
package org.apache.geode_examples.geodeForRedis;
+import java.time.Duration;
import java.util.HashMap;
import java.util.Map;
import java.util.Random;
@@ -25,7 +26,8 @@ public class Example {
public static final String SORTED_SET_KEY = "{tag}leaderboard";
public static void main(String[] args) {
- JedisCluster jedis = new JedisCluster(new HostAndPort("127.0.0.1", 6379));
+ JedisCluster jedis = new JedisCluster(new HostAndPort("127.0.0.1", 6379),
+ (int) Duration.ofMinutes(2).toMillis());
populateSortedSet(jedis);