Description Usage Arguments Details Value Note Author(s) See Also Examples
Use redisSetBlocking
to set the rredis client to blocking (default)
or non-blocking Redis communication mode.
1 2 | redisSetBlocking( value = TRUE )
redisSetPipeline( value = FALSE )
|
value |
TRUE indicates Redis pipelined mode, FALSE non-pipelined mode.
Just to be extra confusing, it's the opposite for the older, now deprecated
function |
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.
The function name redisSetBlocking
is deprecated and will be
replaced in a future version by redisSetPipeline
.
B. W. Lewis
1 2 3 4 5 6 7 8 9 | ## Not run:
redisConnect()
redisSetBlocking(FALSE)
redisLPush('x',pi)
redisLPush('x',exp(1))
redisGetResponse()
redisSetBlocking(TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.