redisConnect(host = "localhost", port = 6379, password = NULL,
returnRef = FALSE, nodelay=FALSE, timeout=2678399L)
If returnRef is set to TRUE and no error occurs, a list describing the
Redis connection will be returned. A future version of the package will
use this feature to support multiple Redis connections with
the attachRedis
function.
Set nodelay=FALSE
to disable the TCP Nagle flow control algorithm which
can improve performance especially for rapid, non-pipelined small-sized
transactions. However, we discourage users from setting this.
Possible consequences include:
* A flooded network with many small Redis messages
* Unhappy TCP services other than Redis
* Angry system adiministrators.
A better choice for good performance is to enable Redis pipelining
with
redisSetPipeline(FALSE)
(q.v.).
redisClose
redisGetContext
redisSetContext
redisSetPipeline
redisGetResponse
redisConnect()
redisSet('x',runif(5))
redisGet('x')
redisClose()
Run the code above in your browser using DataLab