Hacker News new | ask | show | jobs
by __s 1716 days ago
Unfortunately this doesn't meet my use case (which they list as an intended use case): serving static assets over http. I currently use an in-memory cache without eviction. It doesn't meet my requirements because I store the in-memory content precompressed

https://github.com/serprex/openEtG/blob/master/src/rs/server...

edit: seems it can. Nice

2 comments

I think if you call your precompression function in FileLoad::load it should do what you need--please file an issue if this is not the case: https://github.com/haydnv/freqfs/issues
I think I don't understand the problem. Precompressed files are still files and can be cached.
I think what they mean is that they want the file on disk to be uncompressed but the file in memory to be compressed.