GetCacheSize returns the number of cached entries
()
| 141 | |
| 142 | // GetCacheSize returns the number of cached entries |
| 143 | func (r *Resolver) GetCacheSize() int { |
| 144 | r.mutex.RLock() |
| 145 | defer r.mutex.RUnlock() |
| 146 | return len(r.cache) |
| 147 | } |
| 148 | |
| 149 | // getServiceName returns well-known service names for common ports |
| 150 | func getServiceName(port int, proto string) string { |
no outgoing calls