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

Method ProcessHook

tx_unwatch_test.go:48–53  ·  view source on GitHub ↗
(next redis.ProcessHook)

Source from the content-addressed store, hash-verified

46func (h *cmdRecorder) DialHook(next redis.DialHook) redis.DialHook { return next }
47
48func (h *cmdRecorder) ProcessHook(next redis.ProcessHook) redis.ProcessHook {
49 return func(ctx context.Context, cmd redis.Cmder) error {
50 h.record(strings.ToUpper(cmd.Name()))
51 return next(ctx, cmd)
52 }
53}
54
55func (h *cmdRecorder) ProcessPipelineHook(next redis.ProcessPipelineHook) redis.ProcessPipelineHook {
56 return func(ctx context.Context, cmds []redis.Cmder) error {

Callers

nothing calls this directly

Calls 2

recordMethod · 0.95
NameMethod · 0.65

Tested by

no test coverage detected