MCPcopy Index your code
hub / github.com/nodejs/node / CacheHandler

Class CacheHandler

deps/v8/tools/run_perf.py:772–786  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

770
771
772class CacheHandler:
773 def __init__(self, cache_file):
774 self.cache_file = cache_file
775
776 def read_cache(self):
777 try:
778 with open(self.cache_file) as f:
779 return hjson.load(f)
780 except FileNotFoundError:
781 logging.info(f"{self.cache_file} doesn't exist yet. Creating new.")
782 return {}
783
784 def write_cache(self, cache):
785 with open(self.cache_file, 'w') as f:
786 return json.dump(cache, f)
787
788
789class WarmupManager(ABC):

Callers 1

__init__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…