Description Usage Arguments Details Value Author(s) See Also Examples
Use redisSetPipeline
to set the rredis client to blocking (default)
or non-blocking Redis communication mode.
1 | redisSetPipeline( value = FALSE )
|
value |
TRUE indicates Redis pipelined mode, FALSE non-pipelined mode. |
The rredis client blocks for a response from a connected Redis server
after each transaction in non-pipelined mode (the default).
When in pipelined mode, transactions are issued without
servicing Redis server responses, and server responses must be manually
serviced with the redisGetResponse
function.
Pipelined mode can improve performance in some circumstances like
lots of repeated redisSet
operations. When using pipelined
mode, don't forget to periodically service responses from the Redis
server (results are cached on the server until requested).
Note that use of commands like redisMSet
can sometimes obviate the
need to use non-blocking mode.
The new pipeline mode (TRUE/FALSE) is invisibly returned.
B. W. Lewis
1 2 3 4 5 6 7 8 9 | ## Not run:
redisConnect()
redisSetPipeline(TRUE)
redisLPush('x',pi)
redisLPush('x',exp(1))
redisGetResponse()
redisSetPipeline(FALSE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.