title: How connection pooling works with RedisTemplate using spring boot application
body: <p>I have the following code snippet which for getting the RedisTemplate.</p>
  
  <pre><code>@Bean
  public JedisConnectionFactory getJedisConnectionFactory() {
      RedisStandaloneConfiguration redisStandaloneConfiguration = new RedisStandaloneConfiguration();
      redisStandaloneConfiguration.setHostName(host);
      if (!StringUtils.isEmpty(password)) {
          redisStandaloneConfiguration.setPassword(RedisPassword.of(password));
      }
      redisStandaloneConfiguration.setPort(port);
      return new JedisConnectionFactory(redisStandaloneConfiguration, getJedisClientConfiguration());
  }
  
  @Bean
  public RedisTemplate redisTemplate() {
      RedisTemplate&lt;String, Object&gt; redisTemplate = new RedisTemplate&lt;String, Object&gt;();
      redisTemplate.setConnectionFactory(getJedisConnectionFactory());
      redisTemplate.setKeySerializer(new StringRedisSerializer());
      return redisTemplate;
  </code></pre>
  
  <p>}</p>
  
  <p>My question how sprint-boot will understand the Connection pooling because I have not provided any information in my factory about the connection pool. My application properties file has the following properties.</p>
  
  <pre><code>redis.host=&lt;redis-host&gt;
  redis.port=&lt;port&gt;
  redis.password=&lt;password&gt;
  redi.jedis.pool.max.total=16
  redi.jedis.pool.max.idle=8
  redi.jedis.pool.min.idle=4
  </code></pre>