gcp-gradle-build-cache icon indicating copy to clipboard operation
gcp-gradle-build-cache copied to clipboard

GCP: Set Custom-Time in cached entries

Open aSemy opened this issue 1 year ago • 1 comments

Sets the custom-time when adding or creating a cache entry, which will allow for a more optimal expiration policy.

Resolves #47

I'm not sure how to test this. Please could you help?

I also tidied up a few bits and pieces. E.g. formatting exception messages so they don't have newlines in the middle of the message, and using newer Kotlin features. Please let me know if this is a problem, and I should move them to another PR!

aSemy avatar Jun 21 '24 18:06 aSemy

This adds an extra HTTP call for every cache hit, this sounds like it will negatively affect the performance. It seems that rerunning a task that had expired the cache based on creation time is a somewhat reasonable approach does not penalize every cache hit.

liutikas avatar Jun 24 '24 23:06 liutikas