Documentation ¶
Index ¶
- type Stats
- func (s *Stats) AddEvictedCost(cost uint32)
- func (s *Stats) Clear()
- func (s *Stats) EvictedCost() int64
- func (s *Stats) EvictedCount() int64
- func (s *Stats) Hits() int64
- func (s *Stats) IncEvictedCount()
- func (s *Stats) IncHits()
- func (s *Stats) IncMisses()
- func (s *Stats) IncRejectedSets()
- func (s *Stats) Misses() int64
- func (s *Stats) RejectedSets() int64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Stats ¶
type Stats struct {
// contains filtered or unexported fields
}
Stats is a thread-safe statistics collector.
func (*Stats) AddEvictedCost ¶ added in v1.1.0
AddEvictedCost adds cost to the evictedCost counter.
func (*Stats) EvictedCost ¶ added in v1.1.0
EvictedCost returns the sum of costs of evicted entries.
func (*Stats) EvictedCount ¶ added in v1.1.0
EvictedCount returns the number of evicted entries.
func (*Stats) IncEvictedCount ¶ added in v1.1.0
func (s *Stats) IncEvictedCount()
IncEvictedCount increments the evictedCount counter.
func (*Stats) IncRejectedSets ¶ added in v1.1.0
func (s *Stats) IncRejectedSets()
IncRejectedSets increments the rejectedSets counter.
func (*Stats) RejectedSets ¶ added in v1.1.0
RejectedSets returns the number of rejected sets.
Click to show internal directories.
Click to hide internal directories.