Remove all files and metadata from the cache In the case of multiple cache locations, this clears only the last one, which is assumed to be the read/write one.
(self)
| 147 | return False |
| 148 | |
| 149 | def clear_cache(self): |
| 150 | """Remove all files and metadata from the cache |
| 151 | In the case of multiple cache locations, this clears only the last one, |
| 152 | which is assumed to be the read/write one. |
| 153 | """ |
| 154 | rmtree(self.cache_root_location) |
| 155 | self.load_cache() |
| 156 | |
| 157 | def hash_name(self, key): |
| 158 | return hashlib.sha256(key.encode()).hexdigest() |
no test coverage detected