Spring Data Redis: Setting a Password

13,882

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.

Share:
13,882
EvilJinious1
Author by

EvilJinious1

Developer/Architect/Writer

Updated on June 17, 2022

Comments

  • EvilJinious1
    EvilJinious1 almost 2 years

    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?