redis_available | R Documentation |
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.
redis_available()
(logical(1)
)
if (redis_available()) {
# Proceed with code that requires Redis
message("Redis server is available.")
} else {
message("Redis server is not available.")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.