title: Spring Session 2.0 Redis Lettuce Configuration
body: <p>I'm attempting to integration Spring Session 2.0 w/ Redis into a spring framework webapp, but I'm getting caught on configuring the LettuceConnectionFactory. I need to configure it to use SSL, and Spring's documentation <a href="https://docs.spring.io/spring-data/redis/docs/2.0.2.RELEASE/reference/html/#redis:reactive:connectors:lettuce" rel="nofollow noreferrer">here</a> shows configuration like this:</p>
  
  <pre><code>LettuceClientConfiguration clientConfig = LettuceClientConfiguration.builder()
  .useSsl().and()
  .commandTimeout(Duration.ofSeconds(2))
  .shutdownTimeout(Duration.ZERO)
  .build();
  </code></pre>
  
  <p>However, the javadoc for LettuceClientConfigurationBuilder <a href="https://docs.spring.io/spring-data/redis/docs/current/api/org/springframework/data/redis/connection/lettuce/LettuceClientConfiguration.LettuceClientConfigurationBuilder.html" rel="nofollow noreferrer">here</a> shows that the .useSsl() method actually returns a LettuceSslClientConfiguration (<a href="https://docs.spring.io/spring-data/redis/docs/current/api/org/springframework/data/redis/connection/lettuce/LettuceClientConfiguration.LettuceSslClientConfigurationBuilder.html" rel="nofollow noreferrer">javadoc</a>) and that has zero methods on it, and the LettuceConnectionFactory doesn't even accept it as a parameter (<a href="https://docs.spring.io/spring-data/redis/docs/current/api/org/springframework/data/redis/connection/lettuce/LettuceConnectionFactory.html" rel="nofollow noreferrer">javadoc</a>).</p>
  
  <p>I'm wondering if this is a lapse in the api for Spring Data 2.0, but I can't find any bug reports. Any help is appreciated. I've tried to scour all their documentation, but it's very possible I missed something. Thanks!</p>