from_redis_hash: Convert Redis hash

View source: R/redis_tools.R

from_redis_hashR Documentation

Convert Redis hash

Description

Convert a Redis hash to a character vector or list.

Usage

from_redis_hash(con, key, fields = NULL, f = as.character,
  missing = NA_character_)

Arguments

con

A Redis connection object

key

key of the hash

fields

Optional vector of fields (if absent, all fields are retrieved via HGETALL.

f

Function to apply to the list of values retrieved as a single set. To apply element-wise, this will need to be run via something like Vectorize.

missing

What to substitute into the returned vector for missing elements. By default an NA will be added. A stop expression is OK and will only be evaluated if values are missing.


ropensci/RedisAPI documentation built on May 18, 2022, 9:46 a.m.