from_redis_hash: Convert Redis hash

Description Usage Arguments

View source: R/redis_tools.R

Description

Convert a Redis hash to a character vector or list.

Usage

1
2

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 16, 2018, 6:58 a.m.