Skip to content

Commit

Permalink
README: Update example instantiating config types (#405)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesusvazquez authored Oct 12, 2024
1 parent 1daa143 commit e4edd4c
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,string]{
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 e4edd4c

Please sign in to comment.