MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / set

Method set

src/utils/file_state_cache.py:35–44  ·  view source on GitHub ↗
(self, path: str, content: str)

Source from the content-addressed store, hash-verified

33 return content
34
35 async def set(self, path: str, content: str) -> None:
36 abs_path = os.path.abspath(path)
37 async with self._lock:
38 if abs_path in self._cache:
39 self._cache.move_to_end(abs_path)
40 self._cache[abs_path] = content
41 else:
42 self._cache[abs_path] = content
43 while len(self._cache) > self._max_entries:
44 self._cache.popitem(last=False)
45
46 async def invalidate(self, path: str) -> bool:
47 abs_path = os.path.abspath(path)

Callers 15

getMethod · 0.95
sliceAnsiFunction · 0.45
getRelativeTimeFormatFunction · 0.45
writeLineToScreenFunction · 0.45
lineWidthFunction · 0.45
stringWidthFunction · 0.45
renderNodeToOutputFunction · 0.45
rectFunction · 0.45
createRootFunction · 0.45
getInstanceFunction · 0.45
memoizedWrapFunction · 0.45
addPendingClearFunction · 0.45

Calls

no outgoing calls

Tested by 15

rectFunction · 0.36
fake_connectMethod · 0.36
other_taskMethod · 0.36
_callFunction · 0.36
trigger_bgFunction · 0.36
triggerFunction · 0.36
goFunction · 0.36
test_set_and_getMethod · 0.36
test_invalidateMethod · 0.36