Cache.js, easy to use image cache'n
<script src="Cache.js"></script>
- Cache.getImage(string src) - > returns Image()
- Gathers the image from memory and does not load it from file unless missing.
- Cache.updateImage(string src) - > returns boolean for fail/success
- Re-Cache's items. If item is not found then it will add the image, but not get it.
- Cache.addImage(string src, optional boolean force) - > returns boolean for fail/success
- Adds items. If item is found then it will force if true, otherwise it will fail.
Cache.js by LexTheGreat is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Based on a work at https://github.com/LexTheGreat/Cache.js.
Permissions beyond the scope of this license may be available at the email of [email protected].