added another way to configure redis