MCPcopy Create free account
hub / github.com/abetlen/llama-cpp-python / _touch

Method _touch

examples/server/server.py:12523–12528  ·  view source on GitHub ↗
(entry: "SequenceDiskCache.Entry")

Source from the content-addressed store, hash-verified

12521
12522 @staticmethod
12523 def _touch(entry: "SequenceDiskCache.Entry") -> None:
12524 entry.last_accessed = time.time()
12525 try:
12526 os.utime(entry.path, None)
12527 except OSError:
12528 pass
12529
12530 def _oldest_entry(self) -> Optional["SequenceDiskCache.Entry"]:
12531 if not self._entries_by_id:

Callers 2

lookupMethod · 0.95
loadMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected