mirror of
https://github.com/charlienet/go-mixed.git
synced 2025-07-18 00:22:41 +08:00
update
This commit is contained in:
4
cache/stats.go
vendored
4
cache/stats.go
vendored
@ -7,11 +7,11 @@ type Stats struct {
|
||||
Misses uint64
|
||||
}
|
||||
|
||||
func (s *Stats) AddHits() {
|
||||
func (s *Stats) IncrementHits() {
|
||||
atomic.AddUint64(&s.Hits, 1)
|
||||
}
|
||||
|
||||
func (s *Stats) AddMisses() {
|
||||
func (s *Stats) IncrementMisses() {
|
||||
atomic.AddUint64(&s.Misses, 1)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user