We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1daa143 commit e4edd4cCopy full SHA for e4edd4c
README.md
@@ -64,7 +64,7 @@ import (
64
)
65
66
func main() {
67
- cache, err := ristretto.NewCache(&ristretto.Config{
+ cache, err := ristretto.NewCache(&ristretto.Config[string,string]{
68
NumCounters: 1e7, // number of keys to track frequency of (10M).
69
MaxCost: 1 << 30, // maximum cost of cache (1GB).
70
BufferItems: 64, // number of keys per Get buffer.
0 commit comments