MCPcopy Index your code
hub / github.com/CodisLabs/codis / getOpStats

Method getOpStats

pkg/proxy/session.go:637–644  ·  view source on GitHub ↗
(opstr string)

Source from the content-addressed store, hash-verified

635}
636
637func (s *Session) getOpStats(opstr string) *opStats {
638 e := s.stats.opmap[opstr]
639 if e == nil {
640 e = &opStats{opstr: opstr}
641 s.stats.opmap[opstr] = e
642 }
643 return e
644}
645
646func (s *Session) incrOpStats(r *Request, t redis.RespType) {
647 e := s.getOpStats(r.OpStr)

Callers 2

incrOpStatsMethod · 0.95
incrOpFailsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected