Scan the lineage for the index of the most recent cache. :return: Index of most recent cache
(self)
| 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 |