TxPipelined executes commands queued in the fn in the transaction. When using WATCH, EXEC will execute commands only if the watched keys were not modified, allowing for a check-and-set mechanism. Exec always returns list of commands. If transaction fails TxFailedErr is returned. Otherwise Exec ret
(ctx context.Context, fn func(Pipeliner) error)
| 159 | // TxFailedErr is returned. Otherwise Exec returns an error of the first |
| 160 | // failed command or nil. |
| 161 | func (c *Tx) TxPipelined(ctx context.Context, fn func(Pipeliner) error) ([]Cmder, error) { |
| 162 | return c.TxPipeline().Pipelined(ctx, fn) |
| 163 | } |
| 164 | |
| 165 | // TxPipeline creates a pipeline. Usually it is more convenient to use TxPipelined. |
| 166 | func (c *Tx) TxPipeline() Pipeliner { |
nothing calls this directly
no test coverage detected