(self)
| 234 | return self.model_meta[FileSystemCache.MODEL_META_MODEL_ID] |
| 235 | |
| 236 | def save_model_meta(self): |
| 237 | meta_file_path = os.path.join(self.cache_root_location, |
| 238 | FileSystemCache.MODEL_META_FILE_NAME) |
| 239 | with open(meta_file_path, 'wb') as f: |
| 240 | pickle.dump(self.model_meta, f) |
| 241 | |
| 242 | def get_file_by_path(self, file_path): |
| 243 | """Retrieve the cache if there is file match the path. |