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

Method incrOpStats

pkg/proxy/session.go:646–654  ·  view source on GitHub ↗
(r *Request, t redis.RespType)

Source from the content-addressed store, hash-verified

644}
645
646func (s *Session) incrOpStats(r *Request, t redis.RespType) {
647 e := s.getOpStats(r.OpStr)
648 e.calls.Incr()
649 e.nsecs.Add(time.Now().UnixNano() - r.UnixNano)
650 switch t {
651 case redis.TypeError:
652 e.redis.errors.Incr()
653 }
654}
655
656func (s *Session) incrOpFails(r *Request, err error) error {
657 if r != nil {

Callers 1

loopWriterMethod · 0.95

Calls 3

getOpStatsMethod · 0.95
IncrMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected