Motivation
We are building a transaction package manager on top of go-redis that orchestrates pipelines and Postgres transactions together.
For this integration, we need a way to retrieve the list of commands that were queued in a pipeline.
At the moment, pipeline.go stores the commands in a private field. Because it is unexported, we cannot access or inspect the collected commands outside the package.
Proposal
Introduce a method like:
func (p *Pipeline) Cmds() []Cmder
Motivation
We are building a transaction package manager on top of
go-redisthat orchestrates pipelines and Postgres transactions together.For this integration, we need a way to retrieve the list of commands that were queued in a pipeline.
At the moment,
pipeline.gostores the commands in a private field. Because it is unexported, we cannot access or inspect the collected commands outside the package.Proposal
Introduce a method like: