Create a Redis API object. This function is designed to be used from other packages, and not designed to be used directly by users.

redis_api(x, version = NULL)

Arguments

x

An object that defines at least the function command capable of processing commands in the appropriate form.

version

Version of the Redis API to generate. If given as a numeric version (or something that can be coerced into one. If given as TRUE, then we query the Redis server for its version and generate only commands supported by the server.