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 1e92335 commit f01bac0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,8 @@ var _ = stats.Bind("token", caches...)
#### 获取统计信息
``` go
stats.Stats().Range(func(k, v interface{}) bool {
fmt.Printf("stats: %s %+v\n", k, v) // k是池子名称,v是(*stats.StatsNode)类型,其中统计了各种事件的次数,使用`HitRate`方法可以获得缓存命中率
fmt.Printf("stats: %s %+v\n", k, v) // k是池子名称,v是(*stats.StatsNode)类型
// 其中统计了各种事件的次数,使用`HitRate`方法可以获得缓存命中率
return true
})
```
Expand Down

0 comments on commit f01bac0

Please # to comment.