redis_available {mlr3mbo}R Documentation

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.

Usage

redis_available()

Value

(logical(1))

Examples

if (redis_available()) {
  # Proceed with code that requires Redis
  message("Redis server is available.")
} else {
  message("Redis server is not available.")
}

[Package mlr3mbo version 0.3.0 Index]