{"_id":"mem-cache","_rev":"14-a142ce46f4a36c55ef2b3823b3be592d","name":"mem-cache","description":"simple in memory key/value cache with autoclean by timeout","dist-tags":{"latest":"0.0.5"},"versions":{"0.0.1":{"name":"mem-cache","version":"0.0.1","description":"simple in memory key/value cache with autoclean by timeout","main":"index.js","scripts":{"test":"mocha -R spec test"},"repository":{"type":"git","url":"git://github.com/silviom/node-mem-cache.git"},"keywords":["cache"],"author":{"name":"Silvio Massari"},"license":"MIT","dependencies":{},"devDependencies":{"mocha":"1.11.0","assert":"0.4.9"},"_id":"mem-cache@0.0.1","dist":{"shasum":"5e92ea17350631b25f9a3871965d426500ea656f","tarball":"https://registry.npmjs.org/mem-cache/-/mem-cache-0.0.1.tgz","integrity":"sha512-kzrDWV0z9H+UsvtR6oik0819TFPCbjrPsfDbiSTzH7EehM6hOxgFdT+dNlws6URtUb4y0z7BGbDxFy48ykquOg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDa0o18pB6yaOdbGx59EiMKg+U6wx25zcAsJxcOCJSISwIgIywpzCt+VLsGyeS746lRZhaEJy0faUKtB+2MFJeVfqA="}]},"_from":".","_npmVersion":"1.2.11","_npmUser":{"name":"silvio.massari","email":"silvio.massari@gmail.com"},"maintainers":[{"name":"silvio.massari","email":"silvio.massari@gmail.com"}]},"0.0.2":{"name":"mem-cache","version":"0.0.2","description":"simple in memory key/value cache with autoclean by timeout","main":"index.js","scripts":{"test":"mocha -R spec test"},"repository":{"type":"git","url":"git://github.com/silviom/node-mem-cache.git"},"keywords":["cache"],"author":{"name":"Silvio Massari"},"license":"MIT","dependencies":{},"devDependencies":{"mocha":"1.11.0","assert":"0.4.9"},"_id":"mem-cache@0.0.2","dist":{"shasum":"e42d338b86841ab2619f308e192a80c4c5ca6f82","tarball":"https://registry.npmjs.org/mem-cache/-/mem-cache-0.0.2.tgz","integrity":"sha512-itMeqc/9WfNKoqne7pHE/4kikIZoLs5dmNhogZoZXQ+zd5JOipG80r38Cvuziukg+0A6DkaQV4FMeEVRDugV8g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCpWPGZP7IVxKrQCAvA8DKuWqHm3OWZ9HJhZaUF44wYAgIgXD9ZYVXGBaiB/zrwrNFnBpDvjwOdBvQYKA/Np3q6VwI="}]},"_npmVersion":"1.1.65","_npmUser":{"name":"silvio.massari","email":"silvio.massari@gmail.com"},"maintainers":[{"name":"silvio.massari","email":"silvio.massari@gmail.com"}]},"0.0.3":{"name":"mem-cache","version":"0.0.3","description":"simple in memory key/value cache with autoclean by timeout","main":"index.js","scripts":{"test":"mocha -R spec test"},"repository":{"type":"git","url":"git://github.com/silviom/node-mem-cache.git"},"keywords":["cache"],"author":{"name":"Silvio Massari"},"license":"MIT","dependencies":{},"devDependencies":{"mocha":"1.11.0","assert":"0.4.9"},"_id":"mem-cache@0.0.3","dist":{"shasum":"dc2c6ccd3e1274eed2e675aa3237fdd50b4cea43","tarball":"https://registry.npmjs.org/mem-cache/-/mem-cache-0.0.3.tgz","integrity":"sha512-+nBm2Lz+g3wgyYRdAWjE7NqlRPLzsGQibsUOwkn358B0TRqmPVWlTw+8p23xNvIUou9EEOvVsbivKco78Ptt4w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHk3lRKk0bl+rKeTBfP195b7F7N6B3WIXV+ElckY/H9qAiEAhNtl5rZrBttF03zzq5L5gojXX9LcoNE8+f7e9Bb631I="}]},"_npmVersion":"1.1.65","_npmUser":{"name":"silvio.massari","email":"silvio.massari@gmail.com"},"maintainers":[{"name":"silvio.massari","email":"silvio.massari@gmail.com"}]},"0.0.4":{"name":"mem-cache","version":"0.0.4","description":"simple in memory key/value cache with autoclean by timeout","main":"index.js","scripts":{"test":"mocha -R spec test"},"repository":{"type":"git","url":"git://github.com/silviom/node-mem-cache.git"},"keywords":["cache"],"author":{"name":"Silvio Massari","email":"silvio.massari@gmail.com"},"license":"MIT","dependencies":{},"devDependencies":{"mocha":"1.11.0","assert":"0.4.9"},"bugs":{"url":"https://github.com/silviom/node-mem-cache/issues"},"homepage":"https://github.com/silviom/node-mem-cache","_id":"mem-cache@0.0.4","dist":{"shasum":"9942c006fa429390bd5fccc7b790c04f61e0e5bb","tarball":"https://registry.npmjs.org/mem-cache/-/mem-cache-0.0.4.tgz","integrity":"sha512-7GNFaee+n+8zwzBWC9uI/shg9MJ4E0Hp+gWoK+I3SsIaTIlUYmJG2IdFBZpnaYjrPVYPY6muSV+kPnatcZZRtg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD3UHo7UavPHZXZU5vVtDKCkFpTf3QIK4tpYA8Lm15mZwIgBbrJhklEaUyedNDcsHj2NsC1bm19tDTQ3E/7P3GxZjw="}]},"_from":"./","_npmVersion":"1.4.3","_npmUser":{"name":"silvio.massari","email":"silvio.massari@gmail.com"},"maintainers":[{"name":"silvio.massari","email":"silvio.massari@gmail.com"}]},"0.0.5":{"name":"mem-cache","version":"0.0.5","description":"simple in memory key/value cache with autoclean by timeout","main":"index.js","scripts":{"test":"mocha -R spec test","cover":"istanbul cover _mocha -- -R spec test"},"repository":{"type":"git","url":"git://github.com/silviom/node-mem-cache.git"},"keywords":["cache"],"author":{"name":"Silvio Massari","email":"silvio.massari@gmail.com"},"license":"MIT","dependencies":{},"devDependencies":{"mocha":"1.11.0"},"gitHead":"2048d0e2184a623dc879552b382038fdf6579eae","bugs":{"url":"https://github.com/silviom/node-mem-cache/issues"},"homepage":"https://github.com/silviom/node-mem-cache","_id":"mem-cache@0.0.5","_shasum":"11409671b3101173d8dcf42070ae67bf50f377ff","_from":".","_npmVersion":"2.9.0","_nodeVersion":"1.8.4","_npmUser":{"name":"silviom","email":"silvio.massari@gmail.com"},"maintainers":[{"name":"silviom","email":"silvio.massari@gmail.com"}],"dist":{"shasum":"11409671b3101173d8dcf42070ae67bf50f377ff","tarball":"https://registry.npmjs.org/mem-cache/-/mem-cache-0.0.5.tgz","integrity":"sha512-ihkqWSDYdFpaGa5Y3G2QUTvA69I/IqDWT+XRRoMCSYwWZk6n0ecJQZLSoGqEDRaDpPurz2+d9FPqzDZ0xKn7iQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDfrpZmZzclpL5kCD+zu44fPwGlXfes99y5jAdVdeyawQIgbyXQ710TsHmr3rkzAid7gs7LH6HZGmpuqFA4IYKZap0="}]}}},"readme":"# node-mem-cache\n\nA simple in-memory cache for node.js\n- Entries will be disposed on timeout\n- Emits an event on each dispose item by timeout\n\n## Installation\n\n    npm install mem-cache\n\n## Usage\n\n    var Cache = require('mem-cache');\n    var cache = new Cache();\n\n    cache.set('foo', 'bar');\n    console.log(cache.get('foo'))\n\n## API\n\n#### constructor = function(options)\n* 'options' argument is an optional object instance containing the configuration. \n*   - timeout.              Optional number. Specifies in milliseconds the default timeout for each entry. Default 60000 ms.\n*   - doesNotRenewTimeout   Optional boolean. Specifies if entries's timeout should be reseted after each query or update. Default false.\n*   - timeoutDisabled       Optional boolean. Enable/diable timeout feature. If timeout feature is desable, items will not expire. Default false.\n\n### Methods\n\n#### set = function(key, value, timeout)\n* Stores or updates a value.\n* - key     {string} Required. \n* - value   {any}    Required.\n* - timeout {number} Optional. Specifies in milliseconds the timeout for this entry.\n\n#### get = function(key)\n* Retreives a value for a given key, if there is no value for the given key a null value will be returned\n* - key     {string} Required.\n\n#### remove = function(key)\n* Deletes the value and its key from the cache\n\n#### clean = function()\n* Deletes cache's entries all keys\n\n### Properties\n\n#### keys \n*Returns an string array containing all items' keys. It will include keys of items that are expired but weren't been removed yet.\n\n#### length \n* Property that returns the current number of entries in the cache\n\n### Events\n\n#### expired \n* This event will be emitted for every cache entry that was removed because timed out","maintainers":[{"name":"silviom","email":"silvio.massari@gmail.com"}],"time":{"modified":"2022-06-19T17:41:49.817Z","created":"2013-06-26T17:20:40.781Z","0.0.1":"2013-06-26T17:20:58.392Z","0.0.2":"2013-10-17T21:58:50.317Z","0.0.3":"2013-12-02T17:32:34.240Z","0.0.4":"2014-05-15T04:19:10.428Z","0.0.5":"2015-10-06T13:24:15.621Z"},"author":{"name":"Silvio Massari","email":"silvio.massari@gmail.com"},"repository":{"type":"git","url":"git://github.com/silviom/node-mem-cache.git"},"homepage":"https://github.com/silviom/node-mem-cache","keywords":["cache"],"bugs":{"url":"https://github.com/silviom/node-mem-cache/issues"},"license":"MIT","readmeFilename":"README.md"}