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

Method Discard

pipeline.go:40–40  ·  view source on GitHub ↗

Discard discards all commands in the pipeline buffer that have not yet been executed.

()

Source from the content-addressed store, hash-verified

38
39 // Discard discards all commands in the pipeline buffer that have not yet been executed.
40 Discard()
41
42 // Exec sends all the commands buffered in the pipeline to the redis server.
43 Exec(ctx context.Context) ([]Cmder, error)

Callers 6

pipeline_test.goFile · 0.65
ring_test.goFile · 0.65
tx_test.goFile · 0.65
readRESPCommandFunction · 0.65
ReadStringIntoMethod · 0.65
DiscardMethod · 0.65

Implementers 1

Pipelinepipeline.go

Calls

no outgoing calls

Tested by 1

readRESPCommandFunction · 0.52