(opstr string)
| 635 | } |
| 636 | |
| 637 | func (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 | |
| 646 | func (s *Session) incrOpStats(r *Request, t redis.RespType) { |
| 647 | e := s.getOpStats(r.OpStr) |
no outgoing calls
no test coverage detected