Skip to content

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