mirror of
https://gitee.com/devlive-community/datacap.git
synced 2024-11-30 02:57:37 +08:00
feature: remove BinaryJedisCluster dependencies of redis 3.6.3
This commit is contained in:
parent
383cb1a3ff
commit
0b8eb2efc9
@ -5,8 +5,8 @@ import io.edurt.datacap.core.Utils;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import redis.clients.jedis.BinaryJedisCluster;
|
||||
import redis.clients.jedis.HostAndPort;
|
||||
import redis.clients.jedis.JedisCluster;
|
||||
|
||||
import java.net.URI;
|
||||
import java.util.Arrays;
|
||||
@ -28,7 +28,7 @@ public class RedisClusterConnectionInfo extends BaseConnectionInfo {
|
||||
super((info));
|
||||
try {
|
||||
URI uri = new URI(rawUrl);
|
||||
Object maxAttemptsString = info.getOrDefault("maxAttempts", BinaryJedisCluster.DEFAULT_MAX_ATTEMPTS);
|
||||
Object maxAttemptsString = info.getOrDefault("maxAttempts", JedisCluster.DEFAULT_MAX_ATTEMPTS);
|
||||
int maxAttempts = Integer.parseInt(maxAttemptsString.toString());
|
||||
|
||||
String query = uri.getQuery();
|
||||
|
Loading…
Reference in New Issue
Block a user