yx-Yaoxaing commented on code in PR #10234:
URL: https://github.com/apache/dubbo/pull/10234#discussion_r1278267482
##########
dubbo-remoting/dubbo-remoting-redis/src/main/java/org/apache/dubbo/remoting/redis/jedis/SentinelRedisClient.java:
##########
@@ -49,6 +49,14 @@ public SentinelRedisClient(URL url) {
sentinelPool = new JedisSentinelPool(masterName, sentinels,
getConfig(), url.getPassword());
}
+ @Override
+ public boolean exists(String key) {
+ Jedis jedis = sentinelPool.getResource();
+ boolean result = jedis.exists(key);
+ jedis.close();
Review Comment:
不是已经try with了...
##########
dubbo-remoting/dubbo-remoting-redis/src/main/java/org/apache/dubbo/remoting/redis/jedis/SentinelRedisClient.java:
##########
@@ -49,6 +49,14 @@ public SentinelRedisClient(URL url) {
sentinelPool = new JedisSentinelPool(masterName, sentinels,
getConfig(), url.getPassword());
}
+ @Override
+ public boolean exists(String key) {
+ Jedis jedis = sentinelPool.getResource();
+ boolean result = jedis.exists(key);
+ jedis.close();
Review Comment:
不是已经try with了...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]