(next redis.ProcessPipelineHook)
| 77 | } |
| 78 | |
| 79 | func (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 | } |