MCPcopy Create free account
hub / github.com/cactus-compute/cactus / cache_api_key

Method cache_api_key

python/src/config_utils.py:36–40  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

34 return self.load_cached_api_key()
35
36 def cache_api_key(self, key):
37 if not key:
38 return
39 self.telemetry_cache_dir.mkdir(parents=True, exist_ok=True)
40 self.cloud_api_key_cache_file.write_text(key)
41
42 def load_cached_api_key(self):
43 if not self.cloud_api_key_cache_file.exists():

Callers 2

cmd_cleanFunction · 0.95
set_api_keyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected