(repository)
| 699 | |
| 700 | |
| 701 | def list_chunkindex_hashes(repository): |
| 702 | hashes = [] |
| 703 | for info in repository.store_list("cache"): |
| 704 | info = ItemInfo(*info) # RPC does not give namedtuple |
| 705 | if info.name.startswith("chunks."): |
| 706 | hash = info.name.removeprefix("chunks.") |
| 707 | hashes.append(hash) |
| 708 | hashes = sorted(hashes) |
| 709 | logger.debug(f"cached chunk indexes: {hashes}") |
| 710 | return hashes |
| 711 | |
| 712 | |
| 713 | def delete_chunkindex_cache(repository): |
no test coverage detected