{"_id":"memory-cache","_rev":"4527062","name":"memory-cache","description":"A simple in-memory cache. put(), get() and del()","dist-tags":{"latest":"0.2.0"},"maintainers":[{"name":"ptarjan","email":"npm@paulisageek.com"}],"time":{"modified":"2026-04-09T13:23:35.000Z","created":"2012-03-31T08:29:07.683Z","0.2.0":"2017-06-20T07:41:39.683Z","0.1.6":"2016-06-08T08:47:07.212Z","0.1.5":"2016-04-04T16:34:03.935Z","0.1.4":"2015-06-09T17:24:50.845Z","0.1.3":"2015-06-09T00:38:54.452Z","0.1.2":"2015-04-06T06:57:12.194Z","0.1.1":"2015-03-03T20:56:57.192Z","0.1.0":"2015-02-25T08:31:56.139Z","0.0.5":"2013-02-05T10:06:46.303Z","0.0.4":"2012-09-18T03:46:36.181Z","0.0.3":"2012-08-07T09:19:31.941Z","0.0.2":"2012-05-17T22:34:23.333Z","0.0.1":"2012-03-31T08:29:07.683Z"},"users":{},"author":{"name":"Paul Tarjan","email":"npm@paulisageek.com"},"repository":{"type":"git","url":"git://github.com/ptarjan/node-cache.git"},"versions":{"0.2.0":{"name":"memory-cache","description":"A simple in-memory cache. put(), get() and del()","author":{"name":"Paul Tarjan","email":"npm@paulisageek.com"},"contributors":[{"name":"Ramon Snir","email":"ramon@dynamicyield.com"},{"name":"Jacob Wenger","email":"wenger.jacob@gmail.com"}],"keywords":["cache","ram","simple","storage"],"main":"./index.js","version":"0.2.0","repository":{"type":"git","url":"git://github.com/ptarjan/node-cache.git"},"scripts":{"test":"gulp test"},"license":"BSD-2-Clause","devDependencies":{"chai":"^2.2.0","gulp":"^3.8.11","gulp-exit":"0.0.2","gulp-istanbul":"^0.7.0","gulp-jshint":"^1.10.0","gulp-mocha":"^2.0.1","jshint-stylish":"^1.0.1","sinon":"^1.14.1","sinon-chai":"^2.7.0"},"gitHead":"27a1eeec18660b45d39cc5daf44d9647e696e48b","bugs":{"url":"https://github.com/ptarjan/node-cache/issues"},"homepage":"https://github.com/ptarjan/node-cache#readme","_id":"memory-cache@0.2.0","_shasum":"7890b01d52c00c8ebc9d533e1f8eb17e3034871a","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"ptarjan","email":"npm@paulisageek.com"},"dist":{"shasum":"7890b01d52c00c8ebc9d533e1f8eb17e3034871a","size":7534,"noattachment":false,"key":"/memory-cache/-/memory-cache-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/memory-cache/download/memory-cache-0.2.0.tgz"},"maintainers":[{"name":"ptarjan","email":"npm@paulisageek.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/memory-cache-0.2.0.tgz_1497944499100_0.12342500779777765"},"directories":{},"publish_time":1497944499683,"_hasShrinkwrap":false,"_cnpm_publish_time":1497944499683,"_cnpmcore_publish_time":"2021-12-16T14:45:18.951Z"},"0.1.6":{"name":"memory-cache","description":"A simple in-memory cache. put(), get() and del()","author":{"name":"Paul Tarjan","email":"npm@paulisageek.com"},"contributors":[{"name":"Ramon Snir","email":"ramon@dynamicyield.com"},{"name":"Jacob Wenger","email":"wenger.jacob@gmail.com"}],"keywords":["cache","ram","simple","storage"],"main":"./index.js","version":"0.1.6","repository":{"type":"git","url":"git://github.com/ptarjan/node-cache.git"},"scripts":{"test":"gulp test"},"license":"BSD-2-Clause","devDependencies":{"chai":"^2.2.0","gulp":"^3.8.11","gulp-exit":"0.0.2","gulp-istanbul":"^0.7.0","gulp-jshint":"^1.10.0","gulp-mocha":"^2.0.1","jshint-stylish":"^1.0.1","sinon":"^1.14.1","sinon-chai":"^2.7.0"},"gitHead":"cb26698fd2561c2ffadfc210c0a3dae08862bc8a","bugs":{"url":"https://github.com/ptarjan/node-cache/issues"},"homepage":"https://github.com/ptarjan/node-cache#readme","_id":"memory-cache@0.1.6","_shasum":"2ed9933ed7a8c718249be7366f7ca8749acf8a24","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"ptarjan","email":"npm@paulisageek.com"},"dist":{"shasum":"2ed9933ed7a8c718249be7366f7ca8749acf8a24","size":6000,"noattachment":false,"key":"/memory-cache/-/memory-cache-0.1.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/memory-cache/download/memory-cache-0.1.6.tgz"},"maintainers":[{"name":"ptarjan","email":"npm@paulisageek.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/memory-cache-0.1.6.tgz_1465375626623_0.52936717774719"},"directories":{},"publish_time":1465375627212,"_hasShrinkwrap":false,"_cnpm_publish_time":1465375627212,"_cnpmcore_publish_time":"2021-12-16T14:45:19.187Z"},"0.1.5":{"name":"memory-cache","description":"A simple in-memory cache. put(), get() and del()","author":{"name":"Paul Tarjan","email":"npm@paulisageek.com"},"contributors":[{"name":"Ramon Snir","email":"ramon@dynamicyield.com"},{"name":"Jacob Wenger","email":"wenger.jacob@gmail.com"}],"keywords":["cache","ram","simple","storage"],"main":"./index.js","version":"0.1.5","repository":{"type":"git","url":"git://github.com/ptarjan/node-cache.git"},"scripts":{"test":"gulp test"},"license":"BSD-2-Clause","devDependencies":{"chai":"^2.2.0","gulp":"^3.8.11","gulp-exit":"0.0.2","gulp-istanbul":"^0.7.0","gulp-jshint":"^1.10.0","gulp-mocha":"^2.0.1","jshint-stylish":"^1.0.1","sinon":"^1.14.1","sinon-chai":"^2.7.0"},"gitHead":"d6a2d760e48b1da739fda5dbda221745c53a88b0","bugs":{"url":"https://github.com/ptarjan/node-cache/issues"},"homepage":"https://github.com/ptarjan/node-cache#readme","_id":"memory-cache@0.1.5","_shasum":"e16f962e27a612f17121886b2a8009ef10b9962b","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.7.1","_npmUser":{"name":"ptarjan","email":"npm@paulisageek.com"},"dist":{"shasum":"e16f962e27a612f17121886b2a8009ef10b9962b","size":5872,"noattachment":false,"key":"/memory-cache/-/memory-cache-0.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/memory-cache/download/memory-cache-0.1.5.tgz"},"maintainers":[{"name":"ptarjan","email":"npm@paulisageek.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/memory-cache-0.1.5.tgz_1459787643399_0.02957610273733735"},"directories":{},"publish_time":1459787643935,"_hasShrinkwrap":false,"_cnpm_publish_time":1459787643935,"_cnpmcore_publish_time":"2021-12-16T14:45:19.398Z"},"0.1.4":{"name":"memory-cache","description":"A simple in-memory cache. put(), get() and del()","author":{"name":"Paul Tarjan","email":"npm@paulisageek.com"},"contributors":[{"name":"Ramon Snir","email":"ramon@dynamicyield.com"},{"name":"Jacob Wenger","email":"wenger.jacob@gmail.com"}],"keywords":["cache","ram","simple","storage"],"main":"./index.js","version":"0.1.4","repository":{"type":"git","url":"git://github.com/ptarjan/node-cache.git"},"scripts":{"test":"gulp test"},"license":"BSD-2-Clause","devDependencies":{"chai":"^2.2.0","gulp":"^3.8.11","gulp-exit":"0.0.2","gulp-istanbul":"^0.7.0","gulp-jshint":"^1.10.0","gulp-mocha":"^2.0.1","jshint-stylish":"^1.0.1","sinon":"^1.14.1","sinon-chai":"^2.7.0"},"gitHead":"327f4d1232eaab1e12716dc7c5a3c56d4351c118","bugs":{"url":"https://github.com/ptarjan/node-cache/issues"},"homepage":"https://github.com/ptarjan/node-cache#readme","_id":"memory-cache@0.1.4","_shasum":"43bc85bd210657dbfb55ddced645b418cd90e806","_from":".","_npmVersion":"2.11.1","_nodeVersion":"0.12.4","_npmUser":{"name":"ptarjan","email":"npm@paulisageek.com"},"dist":{"shasum":"43bc85bd210657dbfb55ddced645b418cd90e806","size":5757,"noattachment":false,"key":"/memory-cache/-/memory-cache-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/memory-cache/download/memory-cache-0.1.4.tgz"},"maintainers":[{"name":"ptarjan","email":"npm@paulisageek.com"}],"directories":{},"publish_time":1433870690845,"_hasShrinkwrap":false,"_cnpm_publish_time":1433870690845,"_cnpmcore_publish_time":"2021-12-16T14:45:19.589Z"},"0.1.3":{"name":"memory-cache","description":"A simple in-memory cache. put(), get() and del()","author":{"name":"Paul Tarjan","email":"npm@paulisageek.com"},"contributors":[{"name":"Ramon Snir","email":"ramon@dynamicyield.com"},{"name":"Jacob Wenger","email":"wenger.jacob@gmail.com"}],"keywords":["cache","ram","simple","storage"],"main":"./index.js","version":"0.1.3","repository":{"type":"git","url":"git://github.com/ptarjan/node-cache.git"},"scripts":{"test":"gulp test"},"license":"BSD-2-Clause","devDependencies":{"chai":"^2.2.0","gulp":"^3.8.11","gulp-exit":"0.0.2","gulp-istanbul":"^0.7.0","gulp-jshint":"^1.10.0","gulp-mocha":"^2.0.1","jshint-stylish":"^1.0.1","sinon":"^1.14.1","sinon-chai":"^2.7.0"},"gitHead":"d2cde3a85d4e97dc6ca403e96007942942cc1ee1","bugs":{"url":"https://github.com/ptarjan/node-cache/issues"},"homepage":"https://github.com/ptarjan/node-cache#readme","_id":"memory-cache@0.1.3","_shasum":"e0dc89e98573c053934fdda6cae68a545ae35722","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"ptarjan","email":"npm@paulisageek.com"},"dist":{"shasum":"e0dc89e98573c053934fdda6cae68a545ae35722","size":5670,"noattachment":false,"key":"/memory-cache/-/memory-cache-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/memory-cache/download/memory-cache-0.1.3.tgz"},"maintainers":[{"name":"ptarjan","email":"npm@paulisageek.com"}],"directories":{},"publish_time":1433810334452,"_hasShrinkwrap":false,"_cnpm_publish_time":1433810334452,"_cnpmcore_publish_time":"2021-12-16T14:45:19.784Z"},"0.1.2":{"name":"memory-cache","description":"A simple in-memory cache. put(), get() and del()","author":{"name":"Paul Tarjan","email":"npm@paulisageek.com"},"contributors":[{"name":"Ramon Snir","email":"ramon@dynamicyield.com"}],"url":"https://github.com/ramonsnir/node-cache","keywords":["cache","ram","simple","storage"],"main":"./index.js","version":"0.1.2","repository":{"type":"git","url":"git://github.com/ptarjan/node-cache.git"},"scripts":{"test":"node test.js"},"license":"BSD","devDependencies":{"chai":"^2.2.0","gulp":"^3.8.11","gulp-exit":"0.0.2","gulp-istanbul":"^0.7.0","gulp-jshint":"^1.10.0","gulp-mocha":"^2.0.1","jshint-stylish":"^1.0.1","sinon":"^1.14.1","sinon-chai":"^2.7.0"},"gitHead":"5af58d45ffb133fc5163522c33a3ab32236ee7ff","bugs":{"url":"https://github.com/ptarjan/node-cache/issues"},"homepage":"https://github.com/ptarjan/node-cache","_id":"memory-cache@0.1.2","_shasum":"f04e07212b2e1fb40b12b39809ff4e3cc867f7df","_from":".","_npmVersion":"2.7.3","_nodeVersion":"0.12.0","_npmUser":{"name":"ptarjan","email":"npm@paulisageek.com"},"maintainers":[{"name":"ptarjan","email":"npm@paulisageek.com"}],"dist":{"shasum":"f04e07212b2e1fb40b12b39809ff4e3cc867f7df","size":6479,"noattachment":false,"key":"/memory-cache/-/memory-cache-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/memory-cache/download/memory-cache-0.1.2.tgz"},"directories":{},"publish_time":1428303432194,"_hasShrinkwrap":false,"_cnpm_publish_time":1428303432194,"_cnpmcore_publish_time":"2021-12-16T14:45:20.005Z"},"0.1.1":{"name":"memory-cache","description":"A simple in-memory cache. put(), get() and del()","author":{"name":"Paul Tarjan","email":"npm@paulisageek.com"},"contributors":[{"name":"Ramon Snir","email":"ramon@dynamicyield.com"}],"url":"https://github.com/ramonsnir/node-cache","keywords":["cache","ram","simple","storage"],"main":"./index.js","version":"0.1.1","repository":{"type":"git","url":"git://github.com/ptarjan/node-cache.git"},"scripts":{"test":"node test.js"},"license":"BSD","gitHead":"31086683c9691fa590b56291549d2fa50864bec5","bugs":{"url":"https://github.com/ptarjan/node-cache/issues"},"homepage":"https://github.com/ptarjan/node-cache","_id":"memory-cache@0.1.1","_shasum":"cf506e4fefae764db9f67191bc02588d4067cb5a","_from":".","_npmVersion":"2.6.0","_nodeVersion":"0.12.0","_npmUser":{"name":"ptarjan","email":"npm@paulisageek.com"},"maintainers":[{"name":"ptarjan","email":"npm@paulisageek.com"}],"dist":{"shasum":"cf506e4fefae764db9f67191bc02588d4067cb5a","size":4092,"noattachment":false,"key":"/memory-cache/-/memory-cache-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/memory-cache/download/memory-cache-0.1.1.tgz"},"directories":{},"publish_time":1425416217192,"_hasShrinkwrap":false,"_cnpm_publish_time":1425416217192,"_cnpmcore_publish_time":"2021-12-16T14:45:20.215Z"},"0.1.0":{"name":"memory-cache","description":"A simple in-memory cache. put(), get() and del()","author":{"name":"Paul Tarjan","email":"npm@paulisageek.com"},"contributors":[{"name":"Ramon Snir","email":"ramon@dynamicyield.com"}],"url":"https://github.com/ramonsnir/node-cache","keywords":["cache","ram","simple","storage"],"main":"./index.js","version":"0.1.0","repository":{"type":"git","url":"git://github.com/ptarjan/node-cache.git"},"scripts":{"test":"node test.js"},"license":"BSD","gitHead":"c045e79f5c53991dff6601a6f14bb9482c5ee7e4","bugs":{"url":"https://github.com/ptarjan/node-cache/issues"},"homepage":"https://github.com/ptarjan/node-cache","_id":"memory-cache@0.1.0","_shasum":"1657dd3ee259dc8f21a91ba2efda96efd53f3469","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"ptarjan","email":"npm@paulisageek.com"},"maintainers":[{"name":"ptarjan","email":"npm@paulisageek.com"}],"dist":{"shasum":"1657dd3ee259dc8f21a91ba2efda96efd53f3469","size":4065,"noattachment":false,"key":"/memory-cache/-/memory-cache-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/memory-cache/download/memory-cache-0.1.0.tgz"},"directories":{},"publish_time":1424853116139,"_hasShrinkwrap":false,"_cnpm_publish_time":1424853116139,"_cnpmcore_publish_time":"2021-12-16T14:45:20.454Z"},"0.0.5":{"name":"memory-cache","description":"A simple in-memory cache. put() get() and delete()","author":{"name":"Paul Tarjan","email":"npm@paulisageek.com"},"url":"https://github.com/ptarjan/node-cache","keywords":["cache","ram","simple","storage"],"main":"./index.js","version":"0.0.5","repository":{"type":"git","url":"git://github.com/ptarjan/node-cache.git"},"readmeFilename":"README.md","_id":"memory-cache@0.0.5","dist":{"shasum":"dbf99a56d7362c43eccaf39f0ba6f97f31a06786","size":2501,"noattachment":false,"key":"/memory-cache/-/memory-cache-0.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/memory-cache/download/memory-cache-0.0.5.tgz"},"_from":".","_npmVersion":"1.2.2","_npmUser":{"name":"ptarjan","email":"npm@paulisageek.com"},"maintainers":[{"name":"ptarjan","email":"npm@paulisageek.com"}],"directories":{},"publish_time":1360058806303,"_hasShrinkwrap":false,"_cnpm_publish_time":1360058806303,"_cnpmcore_publish_time":"2021-12-16T14:45:20.665Z"},"0.0.4":{"name":"memory-cache","description":"A simple in-memory cache. put() get() and delete()","author":{"name":"Paul Tarjan","email":"npm@paulisageek.com"},"url":"https://github.com/ptarjan/node-cache","keywords":["cache","ram","simple","storage"],"main":"./index.js","version":"0.0.4","repository":{"type":"git","url":"git://github.com/ptarjan/node-cache.git"},"_id":"memory-cache@0.0.4","dist":{"shasum":"b673560b103f2db3ff3c66921ea66acecadaf04f","size":2430,"noattachment":false,"key":"/memory-cache/-/memory-cache-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/memory-cache/download/memory-cache-0.0.4.tgz"},"_npmVersion":"1.1.59","_npmUser":{"name":"ptarjan","email":"npm@paulisageek.com"},"maintainers":[{"name":"ptarjan","email":"npm@paulisageek.com"}],"directories":{},"publish_time":1347939996181,"_hasShrinkwrap":false,"_cnpm_publish_time":1347939996181,"_cnpmcore_publish_time":"2021-12-16T14:45:20.894Z"},"0.0.3":{"name":"memory-cache","description":"A simple in-memory cache. put() get() and delete()","author":{"name":"Paul Tarjan","email":"npm@paulisageek.com"},"url":"https://github.com/ptarjan/node-cache","keywords":["cache","ram","simple","storage"],"main":"./index.js","version":"0.0.3","_npmUser":{"name":"ptarjan","email":"npm@paulisageek.com"},"_id":"memory-cache@0.0.3","dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.18","_nodeVersion":"v0.8.2","_defaultsLoaded":true,"dist":{"shasum":"61fda6d4d2d93e78e3853236a8011f1d163c22c3","size":2384,"noattachment":false,"key":"/memory-cache/-/memory-cache-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/memory-cache/download/memory-cache-0.0.3.tgz"},"maintainers":[{"name":"ptarjan","email":"npm@paulisageek.com"}],"directories":{},"publish_time":1344331171941,"_hasShrinkwrap":false,"_cnpm_publish_time":1344331171941,"_cnpmcore_publish_time":"2021-12-16T14:45:21.088Z"},"0.0.2":{"name":"memory-cache","description":"A simple in-memory cache. put() get() and delete()","author":{"name":"Paul Tarjan","email":"npm@paulisageek.com"},"url":"https://github.com/ptarjan/node-cache","keywords":["cache","ram","simple","storage"],"main":"./index.js","version":"0.0.2","_npmUser":{"name":"ptarjan","email":"npm@paulisageek.com"},"_id":"memory-cache@0.0.2","dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.18","_nodeVersion":"v0.6.17","_defaultsLoaded":true,"dist":{"shasum":"8e9c629fd1f7fe45b01ec1b4a67305316d64100b","size":2240,"noattachment":false,"key":"/memory-cache/-/memory-cache-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/memory-cache/download/memory-cache-0.0.2.tgz"},"maintainers":[{"name":"ptarjan","email":"npm@paulisageek.com"}],"directories":{},"publish_time":1337294063333,"_hasShrinkwrap":false,"_cnpm_publish_time":1337294063333,"_cnpmcore_publish_time":"2021-12-16T14:45:21.339Z"},"0.0.1":{"name":"memory-cache","description":"A simple in-memory cache. put() get() and delete()","author":{"name":"Paul Tarjan","email":"npm@paulisageek.com"},"url":"https://github.com/ptarjan/node-cache","keywords":["cache","ram","simple","storage"],"main":"./index.js","version":"0.0.1","_npmUser":{"name":"ptarjan","email":"npm@paulisageek.com"},"_id":"memory-cache@0.0.1","dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.13","_nodeVersion":"v0.6.14","_defaultsLoaded":true,"dist":{"shasum":"c93754361aef257f97312dbb5ad9013be8898383","size":2198,"noattachment":false,"key":"/memory-cache/-/memory-cache-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/memory-cache/download/memory-cache-0.0.1.tgz"},"maintainers":[{"name":"ptarjan","email":"npm@paulisageek.com"}],"directories":{},"publish_time":1333182547683,"_hasShrinkwrap":false,"_cnpm_publish_time":1333182547683,"_cnpmcore_publish_time":"2021-12-16T14:45:21.569Z"}},"readme":"# memory-cache [![Build Status](https://travis-ci.org/ptarjan/node-cache.svg?branch=master)](https://travis-ci.org/ptarjan/node-cache)\n\nA simple in-memory cache for node.js\n\n## Installation\n\n    npm install memory-cache --save\n\n## Usage\n\n```javascript\nvar cache = require('memory-cache');\n\n// now just use the cache\n\ncache.put('foo', 'bar');\nconsole.log(cache.get('foo'));\n\n// that wasn't too interesting, here's the good part\n\ncache.put('houdini', 'disappear', 100, function(key, value) {\n    console.log(key + ' did ' + value);\n}); // Time in ms\n\nconsole.log('Houdini will now ' + cache.get('houdini'));\n\nsetTimeout(function() {\n    console.log('Houdini is ' + cache.get('houdini'));\n}, 200);\n\n\n// create new cache instance\nvar newCache = new cache.Cache();\n\nnewCache.put('foo', 'newbaz');\n\nsetTimeout(function() {\n  console.log('foo in old cache is ' + cache.get('foo'));\n  console.log('foo in new cache is ' + newCache.get('foo'));\n}, 200);\n```\n\nwhich should print\n\n    bar\n    Houdini will now disappear\n    houdini did disappear\n    Houdini is null\n    foo in old cache is baz\n    foo in new cache is newbaz\n\n## API\n\n### put = function(key, value, time, timeoutCallback)\n\n* Simply stores a value\n* If time isn't passed in, it is stored forever\n* Will actually remove the value in the specified time in ms (via `setTimeout`)\n* timeoutCallback is optional function fired after entry has expired with key and value passed (`function(key, value) {}`)\n* Returns the cached value\n\n### get = function(key)\n\n* Retrieves a value for a given key\n* If value isn't cached, returns `null`\n\n### del = function(key)\n\n* Deletes a key, returns a boolean specifying whether or not the key was deleted\n\n### clear = function()\n\n* Deletes all keys\n\n### size = function()\n\n* Returns the current number of entries in the cache\n\n### memsize = function()\n\n* Returns the number of entries taking up space in the cache\n* Will usually `== size()` unless a `setTimeout` removal went wrong\n\n### debug = function(bool)\n\n* Turns on or off debugging\n\n### hits = function()\n\n* Returns the number of cache hits (only monitored in debug mode)\n\n### misses = function()\n\n* Returns the number of cache misses (only monitored in debug mode)\n\n### keys = function()\n\n* Returns all the cache keys\n\n### exportJson = function()\n\n* Returns a JSON string representing all the cache data\n* Any timeoutCallbacks will be ignored\n\n### importJson = function(json: string, options: { skipDuplicates: boolean })\n\n* Merges all the data from a previous call to `export` into the cache\n* Any existing entries before an `import` will remain in the cache\n* Any duplicate keys will be overwritten, unless `skipDuplicates` is `true`\n* Any entries that would have expired since being exported will expire upon being imported (but their callbacks will not be invoked)\n* Available `options`:\n  * `skipDuplicates`: If `true`, any duplicate keys will be ignored when importing them. Defaults to `false`.\n* Returns the new size of the cache\n\n### Cache = function()\n\n* Cache constructor\n* note that `require('cache')` would return the default instance of Cache\n* while `require('cache').Cache` is the actual class\n\n## Note on Patches/Pull Requests\n\n* Fork the project.\n* Make your feature addition or bug fix.\n* Send me a pull request.\n","_attachments":{},"homepage":"https://github.com/ptarjan/node-cache#readme","bugs":{"url":"https://github.com/ptarjan/node-cache/issues"},"license":"BSD-2-Clause"}