create public method to reset redis connection