gradle-build-action icon indicating copy to clipboard operation
gradle-build-action copied to clipboard

Allow cache-write-only to overwrite existing cache entries

Open bigdaz opened this issue 2 years ago • 1 comments

There is now an API that permits users to delete specific cache entries. It might be possible to leverage this to overwrite existing cache entries, allowing corrupted cache entries to be removed.

Two things we could do without user input:

  • When running with cache-write-only, we could automatically delete any existing cache entries. This would have the effect of overwriting existing cache entries with the same key.
  • If a cache entry is obviously corrupted (ie cannot be restored) we could delete it.

bigdaz avatar Jul 18 '22 20:07 bigdaz

This would address #115

bigdaz avatar Jul 18 '22 20:07 bigdaz