code: private void initJedisPool(Properties props) {
          JedisPoolConfig config = new JedisPoolConfig();
  
          config.setTestOnBorrow(true);
  
          Integer maxIdle = Integer.parseInt(props.getProperty("session.redis.pool.max.idle", "2"));
          config.setMaxIdle(maxIdle);
  
          Integer maxTotal = Integer.parseInt(props.getProperty("session.redis.pool.max.total", "5"));
          config.setMaxTotal(maxTotal);
  
          final String mode = props.getProperty("session.redis.mode");
          if (Objects.equal(mode, SENTINEL_MODE)){
              // sentinel
              this.executor = new RedisExecutor(config, true, props);
          } else {
              // standalone
              this.executor = new RedisExecutor(config, false, props);
          }
      }
docs: init jedis pool with properties
  @param props