snc/SncRedisBundle — pull request #141 by nail (2014-06-15 18:59:47+00:00)
Title: persistent connections - use a different persistent_id per DSN

When using persistent connections with different clients using the same redis server but different databases, the call to 'select' will only be issued during the client's construction, and it will happen on the same persistent connection. You'll end up working on the last opened client's database.

To fix this, I propose to use the persistent_id that can be given to pconnect (https://github.com/nicolasff/phpredis#pconnect-popen) and to tie the persistent connection to the full dsn (using an sha1 of the DSN).