hackpadfs
hackpadfs copied to clipboard
local file cache of s3 assets
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...
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!
thanks for the tip ! Am in the middle of something else but will come back to this.