redis_available: Check if Redis Server is Available
Description
Attempts to establish a connection to a Redis server using the redux package
and sends a PING command. Returns TRUE if the server is available and
responds appropriately, FALSE otherwise.
if (redis_available()) {
# Proceed with code that requires Redis message("Redis server is available.")
} else {
message("Redis server is not available.")
}