Set the source tree hash for this session. Must be called before get()/put(). Computed once by the caller from the full list of header files.
(self, h: str)
| 95 | self._load() |
| 96 | |
| 97 | def set_source_tree_hash(self, h: str) -> None: |
| 98 | """Set the source tree hash for this session. |
| 99 | |
| 100 | Must be called before get()/put(). Computed once by the caller |
| 101 | from the full list of header files. |
| 102 | """ |
| 103 | self._source_tree_hash = h |
| 104 | |
| 105 | def _load(self) -> None: |
| 106 | """Load cache from disk.""" |