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

Method TxPipeline

redis.go:1698–1707  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

1696
1697// TxPipeline acts like Pipeline, but wraps queued commands with MULTI/EXEC.
1698func (c *Conn) TxPipeline() Pipeliner {
1699 pipe := Pipeline{
1700 exec: func(ctx context.Context, cmds []Cmder) error {
1701 cmds = wrapMultiExec(ctx, cmds)
1702 return c.processTxPipelineHook(ctx, cmds)
1703 },
1704 }
1705 pipe.init()
1706 return &pipe
1707}
1708
1709// processPushNotifications processes all pending push notifications on a connection
1710// This ensures that cluster topology changes are handled immediately before the connection is used

Callers 1

TxPipelinedMethod · 0.95

Calls 3

initMethod · 0.95
wrapMultiExecFunction · 0.85
processTxPipelineHookMethod · 0.80

Tested by

no test coverage detected