Skip to contents

Create an interface to rlite, with a generated interface to all rlite commands (using Redux).

Usage

hirlite(...)

rlite_available(...)

Arguments

...

Named configuration options passed to redis_config, used to create the environment (notable keys include host, port, and the environment variable REDIS_URL). In addition to the Redux treatment of the configuration, RLITE_URL takes precendence over REDIS_URL, and a host of localhost or 127.0.0.1 will be treated as an in-memory database (:memory:).

Examples

r <- hirlite()
r$PING()
#> [Redis: PONG]
r$SET("foo", "bar")
#> [Redis: OK]
r$GET("foo")
#> [1] "bar"