MCPcopy Create free account
hub / github.com/EntilZha/PyFunctional / cache_scan

Method cache_scan

functional/lineage.py:71–79  ·  view source on GitHub ↗

Scan the lineage for the index of the most recent cache. :return: Index of most recent cache

(self)

Source from the content-addressed store, hash-verified

69 return self.engine.evaluate(sequence, transformations)
70
71 def cache_scan(self):
72 """
73 Scan the lineage for the index of the most recent cache.
74 :return: Index of most recent cache
75 """
76 try:
77 return len(self.transformations) - self.transformations[::-1].index(CACHE_T)
78 except ValueError:
79 return 0

Callers 1

evaluateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected