title: Using multiple redis databases in Laravel
body: <p>We're using redis for cache as well as for sessions. I'd like to be able to use seperate redis databases (same server, just different database) for each case, as well as being able to use the same server for production and pre-production. I know Redis allows you to define multiple databases on a single server (<a href="http://www.rediscookbook.org/multiple_databases.html" rel="nofollow">http://www.rediscookbook.org/multiple_databases.html</a>), however I don't see how I can translate that to redis. The config (at least according to documentation <a href="http://laravel.com/docs/4.2/redis" rel="nofollow">http://laravel.com/docs/4.2/redis</a>) doesn't mention anything about selecting a database.</p>
  
  <p>Ideally, I'd have 4 databases, production-cache, production-sessions, pre-production-cache, pre-production-sessions (numbered 1-4 as redis doesn't allow you to name databases). Is this doable in Laravel? </p>
  
  <p>Thanks,</p>