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

local file cache of s3 assets #10

Open
gedw99 opened this issue Feb 13, 2022 · 2 comments
Open

local file cache of s3 assets #10

gedw99 opened this issue Feb 13, 2022 · 2 comments

Comments

@gedw99
Copy link

gedw99 commented Feb 13, 2022

hey @JohnStarich

I was exploring how i can have a file cache.

the idea if that the clients ( web or native) can make requests to S3, but the results are cached, such that future requests use the cache, or on a cache miss use S3. This make writing code on top of hackpadFS much easier if your using it with s3.

https://github.com/NinesStack/filecache seems like a good fit for this.

If you have any thoughts on this before i start on this please feel free to let me know what you think...

@gedw99 gedw99 changed the title file cache local file cache of s3 assets Feb 13, 2022
@JohnStarich
Copy link
Contributor

Hey @gedw99! Hope you're well.

I think you may be interested in a combination of the s3.FS example and the cache.ReadOnlyFS.
It should be relatively easy to combine the two for a read-only cache. I'd be interested to hear how it goes!

@gedw99
Copy link
Author

gedw99 commented Feb 14, 2022

thanks for the tip ! Am in the middle of something else but will come back to this.

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

No branches or pull requests

2 participants