{"_id":"simple-lru-cache","_rev":"10-b2b7ffa986315d40d2bb742d21866a0f","name":"simple-lru-cache","description":"node-simple-lru-cache =====================","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"simple-lru-cache","version":"0.0.1","author":{"name":"Gabriel Eisbruch"},"description":"node-simple-lru-cache =====================","main":"index","keywords":["cache","lru","simple","fast"],"directories":{"lib":"./lib"},"maintainers":[{"name":"geisbruch","email":"gabrieleisbruch@gmail.com"}],"licenses":[{"type":"MIT","url":"https://github.com/mercadolibre/node-simple-lru-cache/blob/master/LICENSE"}],"repositories":[{"type":"git","url":"http://github.com/mercadolibre/node-simple-lru-cache.git"}],"dependencies":{},"devDependencies":{"mocha":"*","should":"*"},"scripts":{"test":"make test","bench":"make bench"},"_id":"simple-lru-cache@0.0.1","dist":{"shasum":"0334171e40ed4a4861ac29250eb1db23300be4f0","tarball":"https://registry.npmjs.org/simple-lru-cache/-/simple-lru-cache-0.0.1.tgz","integrity":"sha512-zg6pAh6cGCvxcdFGqHlQL4Y4ADxBdYMF0tptZOD1/TQNYblY6wCnIr8hTMWZS4JNCIxry+KsKyQLHjfc+mXq+w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/Et0iJyRuZg2bkykWq0Xw5CVlJRC0Pcy7o0/NtZjScwIhAMnUYQ7Fjl0QZEFSbwTFmPx7OPVUDzRfoPuxo+/OQA8f"}]},"_npmVersion":"1.1.65","_npmUser":{"name":"geisbruch","email":"gabrieleisbruch@gmail.com"}},"0.0.2":{"name":"simple-lru-cache","version":"0.0.2","author":{"name":"Gabriel Eisbruch"},"description":"node-simple-lru-cache =====================","main":"index","keywords":["cache","lru","simple","fast"],"directories":{"lib":"./lib"},"maintainers":[{"name":"geisbruch","email":"gabrieleisbruch@gmail.com"}],"licenses":[{"type":"MIT","url":"https://github.com/geisbruch/node-simple-lru-cache/blob/master/LICENSE"}],"repositories":[{"type":"git","url":"http://github.com/geisbruch/node-simple-lru-cache.git"}],"dependencies":{},"devDependencies":{"mocha":"*","should":"*"},"scripts":{"test":"make test","bench":"make bench"},"repository":{"type":"git","url":"http://github.com/geisbruch/node-simple-lru-cache.git"},"bugs":{"url":"https://github.com/geisbruch/node-simple-lru-cache/issues"},"homepage":"https://github.com/geisbruch/node-simple-lru-cache","_id":"simple-lru-cache@0.0.2","_shasum":"d59cc3a193c1a5d0320f84ee732f6e4713e511dd","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"geisbruch","email":"gabrieleisbruch@gmail.com"},"dist":{"shasum":"d59cc3a193c1a5d0320f84ee732f6e4713e511dd","tarball":"https://registry.npmjs.org/simple-lru-cache/-/simple-lru-cache-0.0.2.tgz","integrity":"sha512-uEv/AFO0ADI7d99OHDmh1QfYzQk/izT1vCmu/riQfh7qjBVUUgRT87E5s5h7CxWCA/+YoZerykpEthzVrW3LIw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDxPbZw3gRptoHUS2zKiGM3bx7vA6j2mnqY/LK6usbneAIhAK8Y8GvHZoofPG1pHYRqCS/eVcckF+IbeH6XUXS0KRT/"}]}}},"readme":"node-simple-lru-cache\n=====================\n\nIt's a very simple and extremely fast lru cache for node.js.\n\nThis cache will priorize the lastest used keys over the least used keys, \nso when a new key is added if the cache is full, the least used key will be removed\n\n## Instalation\n \n npm install simple-lru-cache\n\n## Usage\n var SimpleCache = require(\"simple-lru-cache\")\n\n var cache = new SimpleCache({\"maxSize\":1000})\n\n //Add an Objet\n cache.set(\"hello\",\"world\")\n\n //Get an Object\n cache.get(\"hello\")\n\n //Delete an Object\n cache.del(\"hello\")\n\n //Reset cache\n cache.reset()\n\n## Tests\n \n npm install\n npm test\n\n## Benchmark against lru-cache\n\n make bench\n","maintainers":[{"name":"geisbruch","email":"gabrieleisbruch@gmail.com"}],"time":{"modified":"2022-06-26T19:43:37.805Z","created":"2013-01-11T15:40:44.980Z","0.0.1":"2013-01-11T15:40:45.770Z","0.0.2":"2015-03-31T13:32:37.150Z"},"author":{"name":"Gabriel Eisbruch"},"users":{"zihuxinyu":true,"sessionbean":true,"duanlinfei":true,"asilvas":true},"homepage":"https://github.com/geisbruch/node-simple-lru-cache","keywords":["cache","lru","simple","fast"],"repository":{"type":"git","url":"http://github.com/geisbruch/node-simple-lru-cache.git"},"bugs":{"url":"https://github.com/geisbruch/node-simple-lru-cache/issues"},"readmeFilename":"README.md"}