Remove a specific cache file.
(func, items)
| 443 | |
| 444 | @staticmethod |
| 445 | def delete_items(func, items): |
| 446 | """Remove a specific cache file.""" |
| 447 | hashes = Cache.get_items_hashes(func, items) |
| 448 | fn_name = getfnname(func) |
| 449 | paths = [relative_path(f'{Cache.cache_directory}{fn_name}/{r}.json') for r in hashes] |
| 450 | _delete_items(paths) |
| 451 | return len(hashes) |
| 452 | |
| 453 | @staticmethod |
| 454 | def delete_items_by_hashes(func, hashes): |
no test coverage detected