MCPcopy
hub / github.com/redis/go-redis / TxPipeline

Method TxPipeline

redis.go:1529–1538  ·  view source on GitHub ↗

TxPipeline acts like Pipeline, but wraps queued commands with MULTI/EXEC.

()

Source from the content-addressed store, hash-verified

1527
1528// TxPipeline acts like Pipeline, but wraps queued commands with MULTI/EXEC.
1529func (c *Client) TxPipeline() Pipeliner {
1530 pipe := Pipeline{
1531 exec: func(ctx context.Context, cmds []Cmder) error {
1532 cmds = wrapMultiExec(ctx, cmds)
1533 return c.processTxPipelineHook(ctx, cmds)
1534 },
1535 }
1536 pipe.init()
1537 return &pipe
1538}
1539
1540func (c *Client) pubSub() *PubSub {
1541 pubsub := &PubSub{

Callers 2

TxPipelinedMethod · 0.95

Calls 3

initMethod · 0.95
wrapMultiExecFunction · 0.85
processTxPipelineHookMethod · 0.80

Tested by 1