canLookUpInCache returns true if these parameters could be used to make a cache lookup.
(cache glcache.Cache, req *dns.Msg)
| 309 | // canLookUpInCache returns true if these parameters could be used to make a |
| 310 | // cache lookup. |
| 311 | func canLookUpInCache(cache glcache.Cache, req *dns.Msg) (ok bool) { |
| 312 | return cache != nil && req != nil && len(req.Question) == 1 |
| 313 | } |
| 314 | |
| 315 | // createCache returns new Cache with the given cacheSize. |
| 316 | func createCache(cacheSize int) (glc glcache.Cache) { |
no outgoing calls
no test coverage detected
searching dependent graphs…