{
  "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"
  },
  "readme": "# node-cache\n\nA simple in-memory cache for node.js\n\n## Installation\n\n    npm install memory-cache\n\n## Usage\n\n    var cache = require('memory-cache');\n\n    // now just use the cache\n\n    cache.put('foo', 'bar');\n    console.log(cache.get('foo'))\n\n    // that wasn't too interesting, here's the good part\n\n    cache.put('houdini', 'disapear', 100) // Time in ms\n    console.log('Houdini will now ' + cache.get('houdini'));\n\n    setTimeout(function() {\n      console.log('Houdini is ' + cache.get('houdini'));\n    }, 200);\n\nwhich should print\n\n    bar\n    Houdini will now disapear\n    Houdini is null\n\n## API\n\n### put = function(key, value, time)\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 (via `setTimeout`)\n\n### get = function(key)\n\n* Retreives a value for a given key\n\n### del = function(key)\n\n* Deletes a key\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\n\n### misses = function()\n\n* Returns the number of cache misses.\n\n## TODO\n\n* Namespaces\n* A way of walking the cache for diagnostic purposes\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",
  "readmeFilename": "README.md",
  "_id": "memory-cache@0.0.5",
  "dist": {
    "shasum": "dbf99a56d7362c43eccaf39f0ba6f97f31a06786",
    "tarball": "http://registry.npmjs.org/memory-cache/-/memory-cache-0.0.5.tgz"
  },
  "_from": "memory-cache@0.0.5",
  "_npmVersion": "1.2.2",
  "_npmUser": {
    "name": "ptarjan",
    "email": "npm@paulisageek.com"
  },
  "maintainers": [
    {
      "name": "ptarjan",
      "email": "npm@paulisageek.com"
    }
  ],
  "directories": {},
  "_shasum": "dbf99a56d7362c43eccaf39f0ba6f97f31a06786",
  "_resolved": "https://registry.npmjs.org/memory-cache/-/memory-cache-0.0.5.tgz"
}
