Stats are per-group statistics.
| 187 | |
| 188 | // Stats are per-group statistics. |
| 189 | type Stats struct { |
| 190 | Gets AtomicInt // any Get request, including from peers |
| 191 | CacheHits AtomicInt // either cache was good |
| 192 | PeerLoads AtomicInt // either remote load or remote cache hit (not an error) |
| 193 | PeerErrors AtomicInt |
| 194 | Loads AtomicInt // (gets - cacheHits) |
| 195 | LoadsDeduped AtomicInt // after singleflight |
| 196 | LocalLoads AtomicInt // total good local loads |
| 197 | LocalLoadErrs AtomicInt // total bad local loads |
| 198 | ServerRequests AtomicInt // gets that came over the network from peers |
| 199 | } |
| 200 | |
| 201 | // Name returns the name of the group. |
| 202 | func (g *Group) Name() string { |
nothing calls this directly
no outgoing calls
no test coverage detected