{"_id":"lrumap","_rev":"3-c69897f2391860da9a0c4a9b873937b6","name":"lrumap","description":"A Map of limited size that keeps most recently used values","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"lrumap","version":"1.0.0","description":"A Map of limited size that keeps most recently used values","main":"dist/index.js","jsnext:main":"index.js","scripts":{"lint":"eslint ./index.js ./__tests__","coverage":"jest --coverage && cat ./coverage/lcov.info | coveralls","test":"jest --coverage && npm run lint","clean":"rimraf dist/ && mkdir dist/","build":"npm test && npm run clean && babel index.js --out-file dist/index.js --source-maps"},"keywords":["cache","map","tuple"],"author":{"name":"@louis_remi"},"license":"MPL-2.0","devDependencies":{"babel-cli":"^6.18.0","babel-jest":"^17.0.2","babel-plugin-add-module-exports":"^0.2.1","babel-preset-es2015":"^6.18.0","coveralls":"^2.11.15","eslint":"^3.12.2","jest":"^17.0.3","rimraf":"^2.5.4"},"gitHead":"e2a602b12d9dc7819fd3cbe0edf29b4d446155c5","_id":"lrumap@1.0.0","_shasum":"9af73069c064db9314bb480dbd6cb3fa5b706e64","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"louisremi","email":"lrbabe@gmail.com"},"dist":{"shasum":"9af73069c064db9314bb480dbd6cb3fa5b706e64","tarball":"https://registry.npmjs.org/lrumap/-/lrumap-1.0.0.tgz","integrity":"sha512-/MKL6zBXPpCMPHP2T9ih3jREKSuPwZcB6Qjf0s3ZOdnjsG9SMwzcIszvwEdMQ6d+iNHWChBCSay7Td+KHqhmFA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDstvh68Sp0Q5uN5zrjc81P7DjOnPB/HBF+4Nyp2cNRCAIgX1bpaTlj2TDbaqCUgDBQ9Qznl14AmfE5ywvmGlxcuPI="}]},"maintainers":[{"name":"louisremi","email":"lrbabe@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/lrumap-1.0.0.tgz_1482340684071_0.17080580326728523"}}},"readme":"TupleMap [![npm version](https://badge.fury.io/js/lrumap.svg)](https://badge.fury.io/js/lrumap) [![Build Status](https://travis-ci.org/memoize-immutable/LRUMap.svg?branch=master)](https://travis-ci.org/memoize-immutable/LRUMap) [![Dependency Status](https://david-dm.org/memoize-immutable/LRUMap.svg)](https://david-dm.org/memoize-immutable/LRUMap) [![Coverage Status](https://coveralls.io/repos/github/memoize-immutable/LRUMap/badge.svg?branch=master)](https://coveralls.io/github/memoize-immutable/LRUMap?branch=master)\n========\n\nA Map of limited size that keeps most recently used values.\nThis lib is one of the several possible cache for [memoize-immutable](/louisremi/memoize-immutable),\nbut it can suit other use-cases as it implements a usual Map API.\n\n## Install\n\n`npm install --save LRUMap`\n\nThis lib has no dependency, but requires a native implementation of Map.\n\n## Usage\n\n```js\nvar LRUMap = require('LRUMap');\n\n// The default size limit of the map is 10.000\nvar cache = new LRUMap({ limit: 10000 });\n\nvar key = 'Carole';\nvar value = {any: 'thing'};\n\ncache.set(key, value);\n\ncache.has(key) === true;\ncache.get(key) === value;\n```\n\n## When should you use this map?\n\nThis map should be used as an alternative to a native Map, when you need to\nlimit its size.\n\n## Author\n\n[@louis_remi](https://twitter.com/louis_remi)\n\n## License\n\nMPL-2.0\n","maintainers":[{"name":"louisremi","email":"lrbabe@gmail.com"}],"time":{"modified":"2022-06-19T14:30:41.005Z","created":"2016-12-21T17:18:04.759Z","1.0.0":"2016-12-21T17:18:04.759Z"},"keywords":["cache","map","tuple"],"author":{"name":"@louis_remi"},"license":"MPL-2.0","readmeFilename":"README.md"}