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

time based cache cleanup #369

Merged
merged 2 commits into from
May 26, 2023
Merged

Conversation

mandelsoft
Copy link
Contributor

@mandelsoft mandelsoft commented May 17, 2023

What this PR does / why we need it:

The filesystem cache for blobs now supports an API for a cache cleanup.
It supports a dry-run mode and a time based mode.

It is accessible using an option interface CacheCleanup.

This way it can programatically be used from a library without the command line interface.,

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Release Notes:

pkg/common/accessio/cache.go Outdated Show resolved Hide resolved
pkg/common/accessio/cache.go Outdated Show resolved Hide resolved
pkg/utils/time.go Show resolved Hide resolved
@mandelsoft mandelsoft merged commit 130abc3 into open-component-model:main May 26, 2023
@mandelsoft mandelsoft deleted the cache branch May 26, 2023 11:52
robertwol pushed a commit that referenced this pull request Sep 25, 2023
* time based cache cleanup

* incorporate review
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.

2 participants