'Rcpp' Bindings for 'Redis' using the 'hiredis' Library

Connection to the 'Redis' key/value store using the C-language client library 'hiredis'. 'MsgPack' encoding is optional if the 'RcppMsgPack' package is detected. You can install via from the 'ghrr' drat repository listed below.


RcppRedis is a Rcpp and hiredis based Redis client for R

The package should install from source like any other R package provided the dependency on the hiredis library is met. The pkg-config script is used to find the hiredis headers and library. All of Rcpp, RApiSerialized and RcppRedis can be installed directly from CRAN (which is the recommended approach) or GitHub.

On OS X, the header file hiredis.h has been seen to be installed directly in /usr/local/include whereas we generally assume a location within a hiredis directory, eg /usr/local/include/hiredis/hiredis.h. This gist shows a successfull OS X installation via homebrew.

Run some of the scripts from the demo/ directory.

The package works well, is used in production, and has been on CRAN for some time.

It is however only providing a subset of the Redis API.

This package was derived from an initial fork of an earlier attempt named 'rhiredis' by Wush Wu, and has since been extended in a number of ways. William Pleasant provided some early patches.

Dirk Eddelbuettel, based on earlier work by Wush Wu and with early contributions by William Pleasant

GPL (>= 2)

News

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("RcppRedis")

0.1.7 by Dirk Eddelbuettel, 3 months ago


Browse source code at https://github.com/cran/RcppRedis


Authors: Dirk Eddelbuettel <edd@debian.org>


Documentation:   PDF Manual  


GPL (>= 2) license


Imports methods, Rcpp, RApiSerialize

Suggests rredis, RUnit, RcppMsgPack

Linking to Rcpp, RApiSerialize, BH

System requirements: The hiredis library (eg via package libhiredis-dev on Debian/Ubuntu, hiredis-devel on Fedora/RedHat, or directly from source from https://github.com/redis/hiredis) is required. MsgPack support is activated if the (optional) RcppMsgPack package is detected; it can be installed from the ghrr drat (see Additional_repositories below).


See at CRAN