[CacheAPI] Overhaul CacheCore and build it in a API
SrRapero720 opened this issue ยท 4 comments
Rework of the internal CacheCore and make it accessible in a API
Should works hand-to-hand with the ImageAPI and PlayerAPI for local catching multimedia (like videos)
Speeding media loading times and reduce bandwidth usage.
is a "just in case" fallback. modding is super weird. native threads have problems with forge's event bus... making context classloader always null (instead of fallback on system classloader) so i expect everything at this point
TODO related to #61
We should also modify fallback code to ensure (even if digest fails) not have long filenames or duplicated filenames (which occurred sometimes using Base64
As far as I know, the fallback is actually never used since the digest can only fail if the SHA-256 is actually removed from the Java's MessageDigest.
I left it to have a return outside of the try
, but I don't know if it's the best way to do.