Skip to content

Expose pipeline command results via Cmds() method #3489

@RasankRam

Description

@RasankRam

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

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions