Replies: 1 comment 1 reply
-
Hello @win5do, I will review why this functionality was dropped and get back to you. In the meantime, can you provide me an example of the usecase you are describing. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem
I want to achieve two functionalities, but I found that I can't do it using go-redis/v9.
1. If ctx has a stress test flag, change the key to a shadow key
I want replace client's Process to hook all Command.
go-redis/v9 Hook API can't change origin redis.Cmder, can only create a new redis.Cmder, which may affect the value obtained by the outermost API.
If you can overwrite Process, you can do this easily and safely. In v6 version WrapProcess API is available.
2. Implement interface like Pipeliner
I am working on migrating some old projects and hope to provide a v9 to v6 API bridge layer to reduce the modification of old code.
Pipeliner need to implement all method in Cmdable, it would be much easier if cmdable could be overwrite like in v9 code.
Request
Provide an API to modify Process similar to WrapProcess in go-reids/v6.
Or do any of you have alternative solutions?
Beta Was this translation helpful? Give feedback.
All reactions