(next redis.ProcessHook)
| 70 | } |
| 71 | |
| 72 | func (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 | |
| 79 | func (h *commandHook) ProcessPipelineHook(next redis.ProcessPipelineHook) redis.ProcessPipelineHook { |
| 80 | return func(ctx context.Context, cmds []redis.Cmder) error { |