Closed rv-nath closed 2 years ago
Hi, the library is still working with v8 since v9 is only in beta. We will release a new/updated version shortly.
See #47
Just a heads up. go-redis v9
is not backward compatible with redis v6
(https://github.com/go-redis/redis/issues/2222). I suggest putting a notice on the README wrt this issue.
When I have this code
And my redis helper file, uses redis v9 like below..
Then, I get an error cmd/app/game-controller.go:85:27: cannot use rc (variable of type "github.com/go-redis/redis/v9".Client) as type redislock.RedisClient in argument to redislock.New: "github.com/go-redis/redis/v9".Client does not implement redislock.RedisClient (wrong type for Eval method) have Eval(ctx context.Context, script string, keys []string, args ...interface{}) "github.com/go-redis/redis/v9".Cmd want Eval(ctx context.Context, script string, keys []string, args ...interface{}) "github.com/go-redis/redis/v8".Cmd make: *** [makefile:8: build] Error 2