Can the original redis client be exposed?
I want to use the original redis client initialized by gozero, because a hook has been added, and the trace is in this hook
We're not going to expose the original redis client, otherwise, it's difficult to upgrade lib without breaking changes.
Would you please show us an example code to demonstrate the details?
In the dtm barrier, I will use the original *redis.Client. I want to use the original *redis.Client initialized by gozero, because it has added hooks, will record trace spans, etc. Is it possible to add a method like GetRedisNode() RedisNode so that I can get *redis.Client via assertion. If redis.Client cannot be exposed, can hooks be exposed?
You can just use redis.New(...), the underlying connections are shared.
You can just use
redis.New(...), the underlying connections are shared.
i mean the v8 Client and ClusterClient
We're not going to expose v8 clients.
We're planning to upgrade to v9, if we exposed the v8 clients, we cannot keep the compatibility, and the client code should be changed after the release.
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.