redis_available: Check if Redis Server is Available

View source: R/helper.R

redis_availableR 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.")
}

mlr3mbo documentation built on June 8, 2025, 12:24 p.m.