use redis connections in a thread-safe way
Merge pull request #1 from p7s1digital/tk/fix-deadlocks

Use redis connections in a thread-safe way