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

Class CacheStatistics

dns/resolver.py:376–388  ·  view source on GitHub ↗

Cache Statistics

Source from the content-addressed store, hash-verified

374
375
376class CacheStatistics:
377 """Cache Statistics"""
378
379 def __init__(self, hits: int = 0, misses: int = 0) -> None:
380 self.hits = hits
381 self.misses = misses
382
383 def reset(self) -> None:
384 self.hits = 0
385 self.misses = 0
386
387 def clone(self) -> "CacheStatistics":
388 return CacheStatistics(self.hits, self.misses)
389
390
391class CacheBase:

Callers 2

cloneMethod · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…