Skip to content

cachefs: Add InvalidateCacheFS interface and extend cacheFS to implement it #4

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tmc
Copy link

@tmc tmc commented Aug 29, 2022

This builds upon #2 to expose an interface for point-invalidation of paths.

This would enable an interface like:

if cfs, ok := fs.(cachefs.InvalidateCacheFS); ok {
    cfs.InvalidateCacheFS("index.html") // error checking omitted.
}

Happy to flesh out some tests here but wanted to get a sense of your take first.

@tmc tmc force-pushed the add-invalidation branch from f9d647d to 1b8d317 Compare August 29, 2022 00:50
@tmc tmc changed the title cachefs: Add RefreshFS interface and extend cacheFS to implement it cachefs: Add InvalidateCacheFS interface and extend cacheFS to implement it Aug 29, 2022
@tmc tmc force-pushed the add-invalidation branch from 1b8d317 to 475c367 Compare August 29, 2022 00:58
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.

1 participant