I have a need to provide a secure connection to Redis from my microservices.
So if I want to add the ability to support authentication so that a client can send an AUTH command with a password. See http://redis.io/topics/security
How can I do this with the Spring Data Redis implementation?
Just set the password
on LettuceConnectionFactory or JedisConnectionFactory, depending on which driver you're using. If you use Spring Boot, set spring.redis.password=…
in your application configuration (see Common application properties.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With