Prevent obsolete entries occupying the cache file.
(self)
| 819 | return timestamp > self.last_reboot |
| 820 | |
| 821 | def trim_cache(self): |
| 822 | """Prevent obsolete entries occupying the cache file.""" |
| 823 | self.cache = dict( |
| 824 | (k, v) for k, v in self.cache.items() if self.is_warmed_up(v)) |
| 825 | |
| 826 | def maybe_warm_up(self, name, warmup_fun): |
| 827 | if self.is_warmed_up(self.cache.get(name, 0)): |
no test coverage detected