소스 검색

rename initPool

shimingxy 2 주 전
부모
커밋
447b74aa88
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      maxkey-commons/maxkey-cache/src/main/java/org/dromara/maxkey/persistence/redis/RedisConnectionFactory.java

+ 2 - 2
maxkey-commons/maxkey-cache/src/main/java/org/dromara/maxkey/persistence/redis/RedisConnectionFactory.java

@@ -40,7 +40,7 @@ public class RedisConnectionFactory {
 
     }
 
-    public void initConnectionFactory() {
+    public void initPool() {
         if (jedisPool == null) {
             _logger.debug("init Jedis Pool .");
             try {
@@ -67,7 +67,7 @@ public class RedisConnectionFactory {
     }
 
     public synchronized RedisConnection getConnection() {
-        initConnectionFactory();
+        initPool();
         _logger.trace("get connection .");
         RedisConnection redisConnection = new RedisConnection(this);
         _logger.trace("return connection .");