go-redis/cache

Can't use ring (type *Ring) as type rediser

hantmac opened this issue · 3 comments

As showed in picture, when I use the demo example I got the error can not use ring type *Ring as type rediser.
截屏2019-12-2410 36 53

Make you have a Go module initialized:

go mod init github.com/my/repo

Then make sure you properly copy-past the example - it works for me.

Make you have a Go module initialized:

go mod init github.com/my/repo

Then make sure you properly copy-past the example - it works for me.

I did not use the example, I just write the code in my project according to the example.And I have import the dependency.

Anyway, I have used another lib.