redisSetPipeline: Set the Redis message blocking state.

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/controlCMD.R

Description

Use redisSetPipeline to set the rredis client to blocking (default) or non-blocking Redis communication mode.

Usage

1

Arguments

value

TRUE indicates Redis pipelined mode, FALSE non-pipelined mode.

Details

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.

Value

The new pipeline mode (TRUE/FALSE) is invisibly returned.

Author(s)

B. W. Lewis

See Also

redisGetResponse

Examples

1
2
3
4
5
6
7
8
9

bwlewis/rredis documentation built on Jan. 3, 2022, 4:53 p.m.