title: Redis - Username, password and db?
body: <p>Is it possible to use username, password and db in Redis?</p>
  
  <p>The reason for this question is because in the official <strong>pyramid_redis_sessions</strong> documentation ( <a href="http://pyramid-redis-sessions.readthedocs.io/en/latest/gettingstarted.html" rel="nofollow noreferrer">http://pyramid-redis-sessions.readthedocs.io/en/latest/gettingstarted.html</a> ) the parameter...</p>
  
  <pre><code>redis.sessions.url = redis://username:password@localhost:6379/0
  </code></pre>
  
  <p>... (to use inside a Python/Pyramid <code>production.ini</code>, for example) suggests the use of username, password and db.</p>
  
  <p>However I have not found anything on the internet that explains how to create a user and password linked to a db on Redis. In the link <a href="https://stackoverflow.com/a/34781633/3223785">https://stackoverflow.com/a/34781633/3223785</a> there is some information about using a db (Redis).</p>
  
  <p>There is the possibility of creating a password ( <a href="https://stackoverflow.com/a/7548743/3223785">https://stackoverflow.com/a/7548743/3223785</a> ). But it seems that is a scope of use other than the parameter <code>redis.sessions.url</code>.</p>
  
  <p><strong>NOTE:</strong> The pyramid_redis_sessions provides a implementation of Pyramid’s ISession interface, using Redis as its backend.</p>
  
  <p>@Jacky</p>