MCPcopy
hub / github.com/AgentOps-AI/agentops / get

Method get

app/api/agentops/common/cache.py:56–61  ·  view source on GitHub ↗
(self, key: str)

Source from the content-addressed store, hash-verified

54 self.expiry = {}
55
56 def get(self, key: str) -> str | None:
57 if key in self.expiry and time.time() > self.expiry[key]:
58 del self.store[key]
59 del self.expiry[key]
60 return None
61 return self.store[key]
62
63 def setex(self, key: str, expiry: int, value: str) -> None:
64 self.store[key] = value

Callers 10

wrapperFunction · 0.45
environment.pyFile · 0.45
cache.pyFile · 0.45
getFunction · 0.45
sanitize_eventFunction · 0.45
_apply_view_docsFunction · 0.45
reverse_pathFunction · 0.45
model_dumpMethod · 0.45
custom_openapiFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected