A Cache with a least recentyl used stragey: the cache has a maximum size of capacity when the maximum size is reached and a new item is added the least recently used object is removed.
$ npm install machinepack-lrucache
For the latest usage documentation, version information, and test status of this module, see http://node-machine.org/machinepack-lrucache. The generated manpages for each machine contain a complete reference of all expected inputs, possible exit states, and example return values. If you need more help, or find a bug, jump into Gitter or leave a message in the project newsgroup.
This is a machinepack, an NPM module which exposes a set of related Node.js machines according to the machinepack specification. Documentation pages for the machines contained in this module (as well as all other NPM-hosted machines for Node.js) are automatically generated and kept up-to-date on the public registry. Learn more at http://node-machine.org/implementing/FAQ.
MIT © 2015 contributors