|
|
|
@ -100,7 +100,7 @@ public class JedisCluster extends BinaryJedisCluster implements JedisClusterComm
|
|
|
|
|
public JedisCluster(Set<HostAndPort> jedisClusterNode, int connectionTimeout, int soTimeout, |
|
|
|
|
int maxAttempts, String password, String clientName, final GenericObjectPoolConfig poolConfig) { |
|
|
|
|
super(jedisClusterNode, connectionTimeout, soTimeout, maxAttempts, password, clientName, poolConfig); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String set(final String key, final String value) { |
|
|
|
@ -1976,4 +1976,14 @@ public class JedisCluster extends BinaryJedisCluster implements JedisClusterComm
|
|
|
|
|
} |
|
|
|
|
}.run(key); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//暴露出Client, 方便上层解耦
|
|
|
|
|
public Client getClient() { |
|
|
|
|
|
|
|
|
|
Jedis jedis = this.connectionHandler.getConnection(); |
|
|
|
|
if (jedis != null) { |
|
|
|
|
return jedis.getClient(); |
|
|
|
|
} |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
} |