MCPcopy Create free account
hub / github.com/Comfy-Org/ComfyUI / get_cache

Method get_cache

app/model_manager.py:19–20  ·  view source on GitHub ↗
(self, key: str, default=None)

Source from the content-addressed store, hash-verified

17 self.cache: dict[str, tuple[list[dict], dict[str, float], float]] = {}
18
19 def get_cache(self, key: str, default=None) -> tuple[list[dict], dict[str, float], float] | None:
20 return self.cache.get(key, default)
21
22 def set_cache(self, key: str, value: tuple[list[dict], dict[str, float], float]):
23 self.cache[key] = value

Callers 3

get_input_dataFunction · 0.45
executeFunction · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected