MCPcopy Index your code
hub / github.com/CodeClash-ai/CodeClash / set

Method set

codeclash/viewer/app.py:132–135  ·  view source on GitHub ↗

Set cache value

(self, key: str, value: Any)

Source from the content-addressed store, hash-verified

130 return entry.data
131
132 def set(self, key: str, value: Any):
133 """Set cache value"""
134 with self._cache_lock:
135 self._cache[key] = CacheEntry(data=value, timestamp=datetime.now())
136
137 def invalidate(self, key: str):
138 """Invalidate a specific cache entry"""

Callers 2

get_or_computeMethod · 0.95
initializeJSONEditorsFunction · 0.80

Calls 1

CacheEntryClass · 0.85

Tested by

no test coverage detected