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
Wrong type for method Del when initialize Redis Store #12
Comments
Hi @Yosafat1997, I think it is because I used the latest version of the https://github.com/go-redis/redis library. Indeed, could you move your import to the v7: import "github.com/go-redis/redis/v7" This way, the following https://github.com/go-redis/redis/blob/master/commands.go#L61 should match the specified interface in the Gocache library: https://github.com/eko/gocache/blob/master/store/redis.go#L15 I hope it helps. Please close this issue if it is fixed, elsewhere I will have a closer look as soon as possible. Thank you |
oh okay,but if you don't mind, is there any possibilities to update this library to follow latest version of its dependencies, such as redis and all caches type that covered by this library? |
Yep, this is the latest version actually, I think you could also try with master branch instead of latest v7 tag:
|
Oh sorry my mistake... i mean if you want to update this library in future. |
I prefer to be based on semantic versioning and so use the v7 release tags, I will update it in case on new releases :) Thank you for reporting this feedback! |
I want to implement a chained cache with Redis and BigCache. I don't have problem to declare Bigcache store, but have problem with redis. I using redis from "github.com/go-redis/redis", gocache store and gocache cache
this is how i declare my cache:
But it give me this error: cannot use redisClient (variable of type *redis.Client) as store.RedisClientInterface value in argument to store.NewRedis: wrong type for method Del"
Is anyone can help me? Thanks
The text was updated successfully, but these errors were encountered: