MCPcopy Index your code
hub / github.com/kubernetes-client/python / _write_cache

Method _write_cache

kubernetes/base/dynamic/discovery.py:73–79  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

71 self._write_cache()
72
73 def _write_cache(self):
74 try:
75 with open(self.__cache_file, 'w') as f:
76 json.dump(self._cache, f, cls=CacheEncoder)
77 except Exception:
78 # Failing to write the cache isn't a big enough error to crash on
79 pass
80
81 def invalidate_cache(self):
82 self.__init_cache(refresh=True)

Callers 3

__init_cacheMethod · 0.95
parse_api_groupsMethod · 0.95
__maybe_write_cacheMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected