You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If using custom redis properties in the application.properties or yaml equivalent, RedisAutoConfiguration doesn't use these settings when using RedisPooledConnectionConfiguration.redisConnectionFactory ().
if (this.properties.getPool() != null) {
JedisConnectionFactory factory = new JedisConnectionFactory(
jedisPoolConfig());
return factory;
}
It needs to set the factory config from properties file.
if (this.properties.getPool() != null) {
JedisConnectionFactory factory = new JedisConnectionFactory(
jedisPoolConfig());
factory.setHostName(this.properties.getHost());
factory.setPort(this.properties.getPort());
if (this.properties.getPassword() != null) {
factory.setPassword(this.properties.getPassword());
}
return factory;
}
Otherwise it uses JedisConnectionFactory defaults which is always localhost and throws connection errors if you're using something other than localhost.
The text was updated successfully, but these errors were encountered:
If using custom redis properties in the
application.properties
or yaml equivalent, RedisAutoConfiguration doesn't use these settings when usingRedisPooledConnectionConfiguration.redisConnectionFactory ()
.It needs to set the factory config from properties file.
Otherwise it uses JedisConnectionFactory defaults which is always localhost and throws connection errors if you're using something other than
localhost
.The text was updated successfully, but these errors were encountered: