MCPcopy
hub / github.com/maziyarpanahi/openmed / get

Method get

openmed/core/result_cache.py:23–28  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

21 self._lock = RLock()
22
23 def get(self, key):
24 with self._lock:
25 if key in self.cache:
26 self.cache.move_to_end(key)
27 return self.cache[key]
28 return None
29
30 def set(self, key, result):
31 if self.max_entries <= 0:

Callers 15

analyze_textFunction · 0.45
write_quant_configFunction · 0.45
_resolve_source_revisionFunction · 0.45
write_quant_configFunction · 0.45
_resolve_source_revisionFunction · 0.45
_normalize_entityMethod · 0.45
_convert_gliner_entityFunction · 0.45
_extract_positionFunction · 0.45
_convert_hf_entityFunction · 0.45
_tokenizeFunction · 0.45

Calls

no outgoing calls