Moved redis setup to public API