Description Usage Arguments Examples
Parse and return Redis INFO
data.
1 2 3 4 5 | redis_info(con)
parse_info(x)
redis_version(con)
|
con |
A Redis connection |
x |
character string |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 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.