redis_info | R Documentation |
Parse and return Redis INFO
data.
redis_info(con)
parse_info(x)
redis_version(con)
con |
A Redis connection |
x |
character string |
if (redux::redis_available()) {
r <- redux::hiredis()
# Redis server version:
redux::redis_version(r)
# This is a 'numeric_version' object so you can compute with it
# if you need to check for minimum versions
redux::redis_version(r) >= numeric_version("2.1.1")
# Extensive information is given back by the server:
redux::redis_info(r)
# Which is just:
redux::parse_info(r$INFO())
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.