Moved redis connection definition to its own namespace.