MCPcopy
hub / github.com/Upsonic/Upsonic / get

Method get

src/upsonic/graphv2/cache.py:87–97  ·  view source on GitHub ↗

Get a value from the cache. Args: namespace: Cache namespace (e.g., node name) key: Cache key Returns: Cached value if found and not expired, None otherwise

(self, namespace: Tuple[str, ...], key: str)

Source from the content-addressed store, hash-verified

85
86 @abstractmethod
87 def get(self, namespace: Tuple[str, ...], key: str) -> Optional[Any]:
88 """Get a value from the cache.
89
90 Args:
91 namespace: Cache namespace (e.g., node name)
92 key: Cache key
93
94 Returns:
95 Cached value if found and not expired, None otherwise
96 """
97 raise NotImplementedError()
98
99 @abstractmethod
100 def put(self, namespace: Tuple[str, ...], key: str, value: Any, ttl: Optional[int] = None) -> None:

Callers 15

get_part_by_vendor_idMethod · 0.45
handle_text_deltaMethod · 0.45
handle_thinking_deltaMethod · 0.45
handle_tool_call_partMethod · 0.45
handle_partMethod · 0.45
from_dictMethod · 0.45
incrMethod · 0.45
from_dictMethod · 0.45
incrMethod · 0.45
from_dictMethod · 0.45
_incr_usage_tokensFunction · 0.45

Calls

no outgoing calls