Node.js library that caches resources from a string or URL in local files.
$ npm install resourcecache
First, load the
ResourceCache class from the
resourcecache module and create an instance.
ResourceCache = ;cache = ;
Then, you can cache a piece of text in a file like this:
Or you can cache an online resource:
Release the file when you don't need it anymore:
When the process exits, all remaining files will be released.
This library is in alpha stage and doesn't do much caching yet.
However, the described interface has been implemented and is fully functional.
An example use can be seen in the EyeServer project.