MCPcopy Create free account
hub / github.com/rthalley/dnspython / misses

Method misses

dns/resolver.py:406–409  ·  view source on GitHub ↗

How many misses has the cache had?

(self)

Source from the content-addressed store, hash-verified

404 return self.statistics.hits
405
406 def misses(self) -> int:
407 """How many misses has the cache had?"""
408 with self.lock:
409 return self.statistics.misses
410
411 def get_statistics_snapshot(self) -> CacheStatistics:
412 """Return a consistent snapshot of all the statistics.

Callers 1

test_cache_statsMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_cache_statsMethod · 0.64