Skip to content

Commit

Permalink
🇬🇧 update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
orca-zhang committed Jan 28, 2022
1 parent f01bac0 commit 0b78577
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,8 @@ var _ = stats.Bind("token", caches...)
#### Get statistics
``` go
stats.Stats().Range(func(k, v interface{}) bool {
fmt.Printf("stats: %s %+v\n", k, v) // k is name of pool, v is type of (*stats.StatsNode) that stats count of events use `HitRate` method can know cache hit rate
fmt.Printf("stats: %s %+v\n", k, v) // k is name of pool, v is type of (*stats.StatsNode)
// StatsNode stores count of events, use `HitRate` method can know cache hit rate
return true
})
```
Expand Down

0 comments on commit 0b78577

Please # to comment.