fix redis default port
restructure to handle potential redis connection errors; make exportable
add clear command
built