-
Notifications
You must be signed in to change notification settings - Fork 47
Description
I noticed you used go-redis/v9 in your examples and hoped to do the same.
When calling: jsonh.SetGoRedisClientWithContext(context.Background(), client)
I get the following error:
cannot use client (variable of type *"github.com/redis/go-redis/v9".Client) as clients.GoRedisClientConn value in argument to jsonh.SetGoRedisClientWithContext: *"github.com/redis/go-redis/v9".Client does not implement clients.GoRedisClientConn (wrong type for method Do). have Do(context.Context, ...interface{}) *"github.com/redis/go-redis/v9".Cmd. want Do(context.Context, ...interface{}) *"github.com/go-redis/redis/v8".Cmd
Also, in my go.mod file after running go mod tidy
I got the v8 installed as an indirect dependency
Here's my Redis Client setup:
jsonh := rejson.NewReJSONHandler()
rdb.setConnectUri()
opt, err := redis.ParseURL(rdb.connectUri)
client := redis.NewClient(opt)
jsonh.SetGoRedisClientWithContext(context.Background(), client)So curious as to why this works in your examples, but I'm unable to do the same.
Thanks,
Ron