MCPcopy Index your code
hub / github.com/FSoft-AI4Code/CodeWiki / touch

Method touch

codewiki/mcp/session.py:52–54  ·  view source on GitHub ↗

Update the last-accessed timestamp.

(self)

Source from the content-addressed store, hash-verified

50 last_accessed: float = field(default_factory=time.time)
51
52 def touch(self) -> None:
53 """Update the last-accessed timestamp."""
54 self.last_accessed = time.time()
55
56 @property
57 def is_expired(self) -> bool:

Callers 1

getMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected