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

Method ProcessPipelineHook

command_recorder_test.go:79–86  ·  view source on GitHub ↗
(next redis.ProcessPipelineHook)

Source from the content-addressed store, hash-verified

77}
78
79func (h *commandHook) ProcessPipelineHook(next redis.ProcessPipelineHook) redis.ProcessPipelineHook {
80 return func(ctx context.Context, cmds []redis.Cmder) error {
81 for _, cmd := range cmds {
82 h.recorder.Record(cmd.String())
83 }
84 return next(ctx, cmds)
85 }
86}

Callers

nothing calls this directly

Calls 2

RecordMethod · 0.80
StringMethod · 0.65

Tested by

no test coverage detected