eko / gocache

☔️ A complete Go cache library that brings you multiple ways of managing your caches
https://vincent.composieux.fr/article/i-wrote-gocache-a-complete-and-extensible-go-cache-library/
MIT License
2.46k stars 195 forks source link

go mod unable to get latest version v2.2.0 #131

Closed herozzm closed 2 years ago

herozzm commented 2 years ago

go mod tidy

go: finding module for package github.com/eko/gocache github.com/eko/gocache: module github.com/eko/gocache@latest found (v1.2.0), but does not contain package github.com/eko/gocache


import (
    "github.com/eko/gocache"
)

func main() {
   //some code
}
coolblknerd commented 2 years ago

I'm running into the same issue trying to set-up a Redis store.

sonu27 commented 2 years ago

Try running go get -u github.com/eko/gocache/v2

razorness commented 2 years ago

You also have to import github.com/eko/gocache/v2.

eko commented 2 years ago

Closing this issue, thanks all for your answers.