MCPcopy Create free account
hub / github.com/golang/groupcache / Stats

Struct Stats

groupcache.go:189–199  ·  view source on GitHub ↗

Stats are per-group statistics.

Source from the content-addressed store, hash-verified

187
188// Stats are per-group statistics.
189type 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.
202func (g *Group) Name() string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected