title: Using SpringSessionBackedSessionRegistry with Redis Session Repository
body: <p>I am using Spring Security and Spring Session (v1.3.1) in my application. </p>
  
  <p>I would like to use <a href="http://docs.spring.io/spring-session/docs/1.3.1.BUILD-SNAPSHOT/api/org/springframework/session/security/SpringSessionBackedSessionRegistry.html" rel="noreferrer">SpringSessionBackedSessionRegistry</a> as my Session Registry and Redis as my Session repository.</p>
  
  <p>The constructor for <a href="http://docs.spring.io/spring-session/docs/1.3.1.BUILD-SNAPSHOT/api/org/springframework/session/security/SpringSessionBackedSessionRegistry.html" rel="noreferrer">SpringSessionBackedSessionRegistry</a> is as follows:</p>
  
  <pre><code>SpringSessionBackedSessionRegistry(FindByIndexNameSessionRepository&lt;ExpiringSession&gt; sessionRepository) 
  </code></pre>
  
  <p>The Redis repository, <a href="http://docs.spring.io/spring-session/docs/1.3.1.BUILD-SNAPSHOT/api/org/springframework/session/data/redis/RedisOperationsSessionRepository.html" rel="noreferrer">RedisOperationsSessionRepository</a> implements:</p>
  
  <pre><code>FindByIndexNameSessionRepository&lt;org.springframework.session.data.redis.RedisOperationsSessionRepository.RedisSession&gt;
  </code></pre>
  
  <p>How, then, can I construct an instance of <a href="http://docs.spring.io/spring-session/docs/1.3.1.BUILD-SNAPSHOT/api/org/springframework/session/security/SpringSessionBackedSessionRegistry.html" rel="noreferrer">SpringSessionBackedSessionRegistry</a> given an instance of <a href="http://docs.spring.io/spring-session/docs/1.3.1.BUILD-SNAPSHOT/api/org/springframework/session/data/redis/RedisOperationsSessionRepository.html" rel="noreferrer">RedisOperationsSessionRepository</a>?</p>
  
  <p>Why is the constructor for <a href="http://docs.spring.io/spring-session/docs/1.3.1.BUILD-SNAPSHOT/api/org/springframework/session/security/SpringSessionBackedSessionRegistry.html" rel="noreferrer">SpringSessionBackedSessionRegistry</a> not:</p>
  
  <pre><code>SpringSessionBackedSessionRegistry(FindByIndexNameSessionRepository&lt;? extends ExpiringSession&gt; sessionRepository) 
  </code></pre>