TxPipeline acts like Pipeline, but wraps queued commands with MULTI/EXEC.
()
| 1696 | |
| 1697 | // TxPipeline acts like Pipeline, but wraps queued commands with MULTI/EXEC. |
| 1698 | func (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 |
no test coverage detected