The key must not contain spaces or newline characters (otherwise an error will be thrown).The value object is copied to the Redis server.
The value to be stored may can be any
serializable R object up to the Redis maximum object size
(excluding, for example, external pointer references).
References to other R objects or environments inside the value are not
guaranteed to be preserved.
In order to store strings that can easily be read by other clients, first
convert the character object using the
charToRaw
function as shown in the
examples.