Added a function for testing if Redis is up

Added a function for testing if a Redis server is up without causing
panic.