hackpadfs icon indicating copy to clipboard operation
hackpadfs copied to clipboard

local file cache of s3 assets

Open gedw99 opened this issue 2 years ago • 2 comments

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 avatar Feb 13 '22 09:02 gedw99

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!

JohnStarich avatar Feb 14 '22 00:02 JohnStarich

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

gedw99 avatar Feb 14 '22 10:02 gedw99