MCPcopy
hub / github.com/dropbox/godropbox / statHelper

Method statHelper

memcache/sharded_client.go:437–451  ·  view source on GitHub ↗
(
	shard int,
	conn net2.ManagedConn,
	statsKey string)

Source from the content-addressed store, hash-verified

435}
436
437func (c *ShardedClient) statHelper(
438 shard int,
439 conn net2.ManagedConn,
440 statsKey string) StatResponse {
441
442 if conn == nil {
443 return NewStatErrorResponse(
444 c.connectionError(shard, nil),
445 make(map[int](map[string]string)))
446 }
447 client := c.builder(shard, conn)
448 defer c.release(client, conn)
449
450 return client.Stat(statsKey)
451}
452
453// See Client interface for documentation.
454func (c *ShardedClient) Stat(statsKey string) StatResponse {

Callers 1

StatMethod · 0.95

Calls 4

connectionErrorMethod · 0.95
releaseMethod · 0.95
NewStatErrorResponseFunction · 0.85
StatMethod · 0.65

Tested by

no test coverage detected