Skip to content

Commit

Permalink
Merge pull request #235 from akaushik759/fix/ristretto-readme-example
Browse files Browse the repository at this point in the history
fix for ristretto readme example with incomplete information about importing ristretto_store
  • Loading branch information
eko authored Jan 23, 2024
2 parents 59202af + 9353dcc commit 96fc2f7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ value := cacheManager.Get(ctx, "my-key")
#### Memory (using Ristretto)

```go
import (
"github.com/dgraph-io/ristretto"
"github.com/eko/gocache/lib/v4/cache"
"github.com/eko/gocache/lib/v4/store"
ristretto_store "github.com/eko/gocache/store/ristretto/v4"
)
ristrettoCache, err := ristretto.NewCache(&ristretto.Config{
NumCounters: 1000,
MaxCost: 100,
Expand Down

0 comments on commit 96fc2f7

Please sign in to comment.