(hook redis.ProcessHook)
| 22 | } |
| 23 | |
| 24 | func (redisHook) ProcessHook(hook redis.ProcessHook) redis.ProcessHook { |
| 25 | return func(ctx context.Context, cmd redis.Cmder) error { |
| 26 | fmt.Printf("starting processing: <%v>\n", cmd.Args()) |
| 27 | err := hook(ctx, cmd) |
| 28 | fmt.Printf("finished processing: <%v>\n", cmd.Args()) |
| 29 | return err |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | func (redisHook) ProcessPipelineHook(hook redis.ProcessPipelineHook) redis.ProcessPipelineHook { |
| 34 | return func(ctx context.Context, cmds []redis.Cmder) error { |