You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ristretto readme example has incomplete information about importing ristretto_store, if u don't import "github.com/eko/gocache/store/ristretto/v4" as ristretto_store then it would error out
Steps for Reproduction
Copy paste the ristretto cache basic example present in readme
Install
-> go get github.com/eko/gocache/lib/v4
-> go get github.com/eko/gocache/store/ristretto/v4
-> go get github.com/dgraph-io/ristretto
You would see "Unresolved reference 'ristretto_store'" in your editor
Expected behavior:
Successful imports
Actual behavior:
Solution:
I found the solution - import the gocache ristretto as ristretto_store to avoid conflict
I also have a branch ready with the README update, but can't push the branch and raise PR, let me know if a fix for this is required, I would push and raise a PR @eko
ristretto readme example has incomplete information about importing ristretto_store, if u don't import "github.com/eko/gocache/store/ristretto/v4" as ristretto_store then it would error out
Steps for Reproduction
Copy paste the ristretto cache basic example present in readme
Install
-> go get github.com/eko/gocache/lib/v4
-> go get github.com/eko/gocache/store/ristretto/v4
-> go get github.com/dgraph-io/ristretto
You would see "Unresolved reference 'ristretto_store'" in your editor
Expected behavior:
Successful imports
Actual behavior:
Solution:
I found the solution - import the gocache ristretto as ristretto_store to avoid conflict
I also have a branch ready with the README update, but can't push the branch and raise PR, let me know if a fix for this is required, I would push and raise a PR @eko
Platforms:
Apple M2 Sonoma
Versions:
github.com/eko/gocache/lib/v4 v4.1.3
github.com/eko/gocache/store/ristretto/v4 v4.2.0
Which versions are you running?
go version go1.21.5 darwin/arm64
The text was updated successfully, but these errors were encountered: