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

Method hits

dns/resolver.py:401–404  ·  view source on GitHub ↗

How many hits has the cache had?

(self)

Source from the content-addressed store, hash-verified

399 self.statistics.reset()
400
401 def hits(self) -> int:
402 """How many hits has the cache had?"""
403 with self.lock:
404 return self.statistics.hits
405
406 def misses(self) -> int:
407 """How many misses has the cache had?"""

Callers 1

test_cache_statsMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_cache_statsMethod · 0.64