inspired by Google Guava Loading Cache . The cache is simpler since it doesn't have to deal with concurrent threads, but other functionality of Guava cache are captured like - Auto loader function - Removal listener - Auto expiry After Write (TTL) - Max Size and weight - Cache Stats recording For usage and overview see wiki: https://github.com/monmohan/dsjslib/wiki/LRU-Cache-Feature-and-usage-overview
When the buffer is filled, new data is written starting at the beginning of the buffer and overwriting the old.
npm install dsjslib
Current version 0.6.9 is stable and thoroughly tested on Node v0.10