Skip to content

Commit

Permalink
README: Update example instantiating config types
Browse files Browse the repository at this point in the history
  • Loading branch information
jesusvazquez committed Oct 12, 2024
1 parent 1daa143 commit 2ad66d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ import (
)

func main() {
cache, err := ristretto.NewCache(&ristretto.Config{
cache, err := ristretto.NewCache(&ristretto.Config[string,int]{
NumCounters: 1e7, // number of keys to track frequency of (10M).
MaxCost: 1 << 30, // maximum cost of cache (1GB).
BufferItems: 64, // number of keys per Get buffer.
Expand Down

0 comments on commit 2ad66d7

Please sign in to comment.