Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GCP: Set Custom-Time in cached entries #58

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aSemy
Copy link
Contributor

@aSemy aSemy commented Jun 21, 2024

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!

@liutikas
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set custom-time when a cache entry is read or written, so I can expire unused entries
2 participants