-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go-redis/v9 compatibility #75
Comments
Curious 🤔 Can you provide a small program with go modules that replicates the error? I feel like it's related to the versions you're using. |
Sure view test repo This repo is based on the subgraph-go-gqlgen template for building gqlgen graphs |
Hi I had this same problem and was able to resolve it. Looks like it is caused because there is no new tag after the v9 upgrade was done. When users run |
@unitoftime Thanks bud, was on my way to downgrade to go-redis v8 but your solution did work for me |
@Shivam010 could you please release a new tag, to include the PR #72 ? |
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:
So curious as to why this works in your examples, but I'm unable to do the same.
Thanks,
Ron
The text was updated successfully, but these errors were encountered: