You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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