redis_info: Parse Redis INFO

Description Usage Arguments Examples

Description

Parse and return Redis INFO data.

Usage

1
2
3
4
5

Arguments

con

A Redis connection

x

character string

Examples

 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())
}

Example output



redux documentation built on May 2, 2019, 1:42 p.m.