http://thisthread.blogspot.com/2013/03/preparing-to-write-redis-client.html