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

Method ProcessHook

command_recorder_test.go:72–77  ·  view source on GitHub ↗
(next redis.ProcessHook)

Source from the content-addressed store, hash-verified

70}
71
72func (h *commandHook) ProcessHook(next redis.ProcessHook) redis.ProcessHook {
73 return func(ctx context.Context, cmd redis.Cmder) error {
74 h.recorder.Record(cmd.String())
75 return next(ctx, cmd)
76 }
77}
78
79func (h *commandHook) ProcessPipelineHook(next redis.ProcessPipelineHook) redis.ProcessPipelineHook {
80 return func(ctx context.Context, cmds []redis.Cmder) error {

Callers

nothing calls this directly

Calls 2

RecordMethod · 0.80
StringMethod · 0.65

Tested by

no test coverage detected