I have a spring book (kotlin) app using Jedis to connect to redis.
Spring has documented a list of common connection properties for redis. My understanding from reading blog posts and documentation is that JedisConnectionFactory
is expected to automatically read and respect those values.
Unfortunately it doesn't seem like this is happening in my code.
I would expect a connection failure with a default redis running on localhost and an application.yml
as follows, but it isn't happening.
spring:
redis:
database: 0
host: localhostBadhost
port: 9999 #default is: 6379
password: badPassword
timeout: 60000
What steps need to be taken to ensure Jedis executes its auto-configuration step?