{"_id":"levelup-cache","_rev":"27-965e2fa355c2657580bafd86e270b909","name":"levelup-cache","description":"Use LevelUP to cache remote data","dist-tags":{"latest":"2.3.0"},"versions":{"1.0.0":{"name":"levelup-cache","version":"1.0.0","description":"Use LevelUP to cache remote data","main":"index.js","directories":{"test":"test"},"devDependencies":{"tap":"~0.4.4","level-mem":"~0.18.0"},"scripts":{"test":"tap ./test"},"dependencies":{"stringmap":"~0.2.2","level-sublevel":"~5.2.0","asynquence":"~0.1.1-a","expire-unused-keys":"~0.2.0"},"peerDependencies":{"level-sublevel":">=5.2.0","levelup":"~0.18.0"},"repository":{"type":"git","url":"https://github.com/TehShrike/levelup-cache.git"},"bugs":{"url":"https://github.com/TehShrike/levelup-cache/issues"},"_id":"levelup-cache@1.0.0","dist":{"shasum":"413ae2d86de9ca5758d6c427748a7342ddb197a1","tarball":"https://registry.npmjs.org/levelup-cache/-/levelup-cache-1.0.0.tgz","integrity":"sha512-q6UDnWK8fhjbDuzgBbiZAFQ2Wd/J8vLoeHuYc8mM8CxxgDPIcqH95tz5PpG96F5osE3P9ZCHnppgf7KPJWYdJw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDV2E2zfEGP1HFKruPVVnJ4FcU6kISBHmEdKU5UGh1P7wIhAOJ2+aGtA8GlcGgKBL3N0reOAwKPee/VNQ+b3wuu9g0l"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"tehshrike","email":"me@JoshDuff.com"},"maintainers":[{"name":"tehshrike","email":"me@JoshDuff.com"}]},"1.1.1":{"name":"levelup-cache","version":"1.1.1","description":"Use LevelUP to cache remote data","main":"index.js","directories":{"test":"test"},"devDependencies":{"tap":"~0.4.4","level-mem":"~0.18.0"},"scripts":{"test":"tap ./test"},"dependencies":{"stringmap":"~0.2.2","level-sublevel":"~5.2.0","asynquence":"~0.1.1-a","expire-unused-keys":"~0.2.0"},"peerDependencies":{"level-sublevel":">=5.2.0","levelup":"~0.18.0"},"repository":{"type":"git","url":"https://github.com/TehShrike/levelup-cache.git"},"license":"WTFPL","bugs":{"url":"https://github.com/TehShrike/levelup-cache/issues"},"_id":"levelup-cache@1.1.1","dist":{"shasum":"5d3e56c3b2737fa87cd4e03cd5c6696fbf07f5ee","tarball":"https://registry.npmjs.org/levelup-cache/-/levelup-cache-1.1.1.tgz","integrity":"sha512-4KBT3gJUy0Fp8TFtzx8DbQT93gMA1Zq5NCr8IYgHBZjOCDWijnMFl0HxkanUYcIXDumHLWIlnV//DEKsBvcoNA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIED0MzZjDID+hfDVDzy6F61goKmGl6AjZaFVOS0WfFBiAiBLsKrFBGDyOZBRqMNO8DmPBsNVcN4SyGVbuuCj64+puw=="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"tehshrike","email":"me@JoshDuff.com"},"maintainers":[{"name":"tehshrike","email":"me@JoshDuff.com"}]},"1.1.2":{"name":"levelup-cache","version":"1.1.2","description":"Use LevelUP to cache remote data","main":"index.js","directories":{"test":"test"},"devDependencies":{"tap":"~0.4.4","level-mem":"~0.18.0"},"scripts":{"test":"tap ./test"},"dependencies":{"stringmap":"~0.2.2","level-sublevel":"~5.2.0","asynquence":"~0.1.1-a","expire-unused-keys":"~0.2.1"},"peerDependencies":{"level-sublevel":">=5.2.0","levelup":"~0.18.0"},"repository":{"type":"git","url":"https://github.com/TehShrike/levelup-cache.git"},"license":"WTFPL","bugs":{"url":"https://github.com/TehShrike/levelup-cache/issues"},"_id":"levelup-cache@1.1.2","dist":{"shasum":"d9c599a890d417e642cc8d4e608a2e3e1f0a2d22","tarball":"https://registry.npmjs.org/levelup-cache/-/levelup-cache-1.1.2.tgz","integrity":"sha512-xbTYn4LrbCV3mztD5hd2vZyrOHTYhH1kSYS83KGdmvZ8iOmM6SC8r+W/4OYoTTMFpQgNaRL0QiaykkfBxFStHA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICFh/kyB1RGHQ3Y3aRZLHwCIE4DxyVK8apTZtl/pmWwJAiEA5H3KZ51Dxv9pHyS+PROQAehdFOnZgmty0dtHDuMjccE="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"tehshrike","email":"me@JoshDuff.com"},"maintainers":[{"name":"tehshrike","email":"me@JoshDuff.com"}]},"1.1.3":{"name":"levelup-cache","version":"1.1.3","description":"Use LevelUP to cache remote data","main":"index.js","directories":{"test":"test"},"devDependencies":{"tap":"~0.4.4","level-mem":"~0.18.0"},"scripts":{"test":"tap ./test"},"dependencies":{"stringmap":"~0.2.2","level-sublevel":"~5.2.0","asynquence":"~0.1.1-a","expire-unused-keys":"~0.2.1","extend":"~1.2.1"},"peerDependencies":{"level-sublevel":">=5.2.0","levelup":"~0.18.0"},"repository":{"type":"git","url":"https://github.com/TehShrike/levelup-cache.git"},"license":"WTFPL","bugs":{"url":"https://github.com/TehShrike/levelup-cache/issues"},"homepage":"https://github.com/TehShrike/levelup-cache","_id":"levelup-cache@1.1.3","dist":{"shasum":"b4d802c068b0d4ff7dafdd25085cd3ef02237b66","tarball":"https://registry.npmjs.org/levelup-cache/-/levelup-cache-1.1.3.tgz","integrity":"sha512-Xs9cID08QvpVuYKhasXkoghzohuPBuwHBqktk67xPnA9dIKCeknD5RyO+WLkpcLntCyjliOtAhgne10meTXpkQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDXeMkKVJyWpHv2mJT0kzo69mDJyRrTO0MOLM+YQGGlPgIgG8f4ZN+TWp4LhWJcVe+elQX7yyhldvL6O1I7yZO35j8="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"tehshrike","email":"me@JoshDuff.com"},"maintainers":[{"name":"tehshrike","email":"me@JoshDuff.com"}]},"1.1.4":{"name":"levelup-cache","version":"1.1.4","description":"Use LevelUP to cache remote data","main":"index.js","directories":{"test":"test"},"devDependencies":{"tap":"~0.4.4","level-mem":"~0.18.0"},"scripts":{"test":"tap ./test"},"dependencies":{"stringmap":"~0.2.2","level-sublevel":"~5.2.0","asynquence":"~0.1.1-a","expire-unused-keys":"~0.2.1","extend":"~1.2.1"},"peerDependencies":{"level-sublevel":">=5.2.0","levelup":"~0.18.0"},"repository":{"type":"git","url":"https://github.com/TehShrike/levelup-cache.git"},"license":"WTFPL","bugs":{"url":"https://github.com/TehShrike/levelup-cache/issues"},"homepage":"https://github.com/TehShrike/levelup-cache","_id":"levelup-cache@1.1.4","dist":{"shasum":"8f7c16fc865e0955e82e6133f7db655fe8c8aa1f","tarball":"https://registry.npmjs.org/levelup-cache/-/levelup-cache-1.1.4.tgz","integrity":"sha512-/cofYLPo90VSI3GDHGgDaie2SG+CioD5TgZ2WC1yKqLdZFti2szcSY+0LmN13MEFlKHQVFy3OlEksqanNwuDuw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGLIY48F2M5NTqAKQYEyVmbHxqcnsMtwb40VvKRPTyYGAiA0C5DKw/czUJJzoyAP6U27hC/6sKGDvk+Q/IAdNfmA6A=="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"tehshrike","email":"me@JoshDuff.com"},"maintainers":[{"name":"tehshrike","email":"me@JoshDuff.com"}]},"1.1.5":{"name":"levelup-cache","version":"1.1.5","description":"Use LevelUP to cache remote data","main":"index.js","directories":{"test":"test"},"devDependencies":{"tap":"~0.4.4","level-mem":"~0.18.0"},"scripts":{"test":"tap ./test"},"dependencies":{"stringmap":"~0.2.2","level-sublevel":"~5.2.0","asynquence":"~0.1.1-a","expire-unused-keys":"~0.2.1","extend":"~1.2.1"},"peerDependencies":{"level-sublevel":">=5.2.0","levelup":"~0.18.0"},"repository":{"type":"git","url":"https://github.com/TehShrike/levelup-cache.git"},"license":"WTFPL","bugs":{"url":"https://github.com/TehShrike/levelup-cache/issues"},"homepage":"https://github.com/TehShrike/levelup-cache","_id":"levelup-cache@1.1.5","dist":{"shasum":"a6c5f06d9a0d3a1bb52a689e829cea0c770bbad3","tarball":"https://registry.npmjs.org/levelup-cache/-/levelup-cache-1.1.5.tgz","integrity":"sha512-aqDuPfwjL/5AIludeiH+nndf5SqRxIe77kAcc4a/1jU8Z1fAeBlgDo0tLt/5spdu8/xcSzpTSCzy4RJ5vQ6bDA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAw9fiHZaLBHB+rIX+lWw/3W6ldKclVvLqj5qBSSTttcAiEAgL9j7i9M/wfW+c3qSgiPHFGDIrYDO5V1+nqE0KJvUGc="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"tehshrike","email":"me@JoshDuff.com"},"maintainers":[{"name":"tehshrike","email":"me@JoshDuff.com"}]},"1.1.6":{"name":"levelup-cache","version":"1.1.6","description":"Use LevelUP to cache remote data","main":"index.js","directories":{"test":"test"},"devDependencies":{"tap":"~0.4.4","level-mem":"~0.18.0"},"scripts":{"test":"tap ./test"},"dependencies":{"stringmap":"~0.2.2","level-sublevel":"~5.2.0","asynquence":"~0.1.1-a","expire-unused-keys":"~0.2.1","extend":"~1.2.1"},"repository":{"type":"git","url":"https://github.com/TehShrike/levelup-cache.git"},"license":"WTFPL","bugs":{"url":"https://github.com/TehShrike/levelup-cache/issues"},"homepage":"https://github.com/TehShrike/levelup-cache","_id":"levelup-cache@1.1.6","dist":{"shasum":"8b01b7a8116d580de15f9db9fc04b7b83c944f00","tarball":"https://registry.npmjs.org/levelup-cache/-/levelup-cache-1.1.6.tgz","integrity":"sha512-aUG6cMzpqbDHAY7iVl5OSIEJ18WuwIkJ91CppvQhXT9oy34sWUlIXnsXiJhzIiwrRLj+/Jlro9HRt5xg8UlATQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCnOY9WhLcNMjlVW4lLrWcyoWz7bN+z8mHYB0KIBxFwggIgTTbv36ThDGZWTx077IP1R9Lcvd21IX5es1AiLjbmdBQ="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"tehshrike","email":"me@JoshDuff.com"},"maintainers":[{"name":"tehshrike","email":"me@JoshDuff.com"}]},"1.1.7":{"name":"levelup-cache","version":"1.1.7","description":"Use LevelUP to cache remote data","main":"index.js","directories":{"test":"test"},"devDependencies":{"tap":"~0.4.4","level-mem":"~0.18.0"},"scripts":{"test":"tap ./test"},"dependencies":{"stringmap":"~0.2.2","level-sublevel":"~5.2.0","asynquence":"~0.1.1-a","expire-unused-keys":"^1.0.0","extend":"~1.2.1"},"repository":{"type":"git","url":"https://github.com/TehShrike/levelup-cache.git"},"license":"WTFPL","gitHead":"facea1ed2d2add1c9d67c55077cecd03f4acc66a","bugs":{"url":"https://github.com/TehShrike/levelup-cache/issues"},"homepage":"https://github.com/TehShrike/levelup-cache","_id":"levelup-cache@1.1.7","_shasum":"92ec94325c205d056e70d55e407ec794a19e0630","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"tehshrike","email":"me@JoshDuff.com"},"maintainers":[{"name":"tehshrike","email":"me@JoshDuff.com"}],"dist":{"shasum":"92ec94325c205d056e70d55e407ec794a19e0630","tarball":"https://registry.npmjs.org/levelup-cache/-/levelup-cache-1.1.7.tgz","integrity":"sha512-tyiDt7PDE8lWOzLYyvzC14chkYwCOGs5VHp3f6D/0zGGhc6MYUIOxrGKmXGzBL3vm8f7RN+yEydYq8eYg55sWw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAGZDJZroaJhpap7aRWIDf6W/ZxVlZ4w+kjugupcgCkhAiBsMmHOm6b0tmpN43uqnIwSeFyFvm6aenTWOIYprs5MBQ=="}]}},"1.1.8":{"name":"levelup-cache","version":"1.1.8","description":"Use LevelUP to cache remote data","main":"index.js","directories":{"test":"test"},"devDependencies":{"tap":"~0.4.4","level-mem":"~0.18.0"},"scripts":{"test":"tap ./test"},"dependencies":{"stringmap":"~0.2.2","level-sublevel":"~5.2.0","asynquence":"~0.1.1-a","expire-unused-keys":"^1.0.0","extend":"~1.2.1"},"repository":{"type":"git","url":"https://github.com/TehShrike/levelup-cache.git"},"license":"WTFPL","gitHead":"abfdb70929e6cf66a70929c682ed87796cd4e3ac","bugs":{"url":"https://github.com/TehShrike/levelup-cache/issues"},"homepage":"https://github.com/TehShrike/levelup-cache","_id":"levelup-cache@1.1.8","_shasum":"0eebcad442cdcd146308bd6a12c96bf60db338dc","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"tehshrike","email":"me@JoshDuff.com"},"maintainers":[{"name":"tehshrike","email":"me@JoshDuff.com"}],"dist":{"shasum":"0eebcad442cdcd146308bd6a12c96bf60db338dc","tarball":"https://registry.npmjs.org/levelup-cache/-/levelup-cache-1.1.8.tgz","integrity":"sha512-O0pKaxvOiKCRuzKNGvF4LdolyM1pQ24prxBxIBy9+8PaQTC7zWalNKbS3b22HJJOVK+OvCgy2B3xmPmZGsBLPg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDo693qvBE1cx5uHTF7g0FDjqX76Ok52Yvfww4o+c/O9wIhAMl2KZQCdmRmYfzYzSI0fhSZG82gXVRVz9WbP0XQytbv"}]}},"1.1.9":{"name":"levelup-cache","version":"1.1.9","description":"Use LevelUP to cache remote data","main":"index.js","directories":{"test":"test"},"devDependencies":{"level-mem":"~0.18.0","tape":"^4.0.0"},"scripts":{"test":"tape ./test/*.js"},"dependencies":{"stringmap":"~0.2.2","level-sublevel":"~6.4.6","asynquence":"~0.6.0-b","expire-unused-keys":"^1.0.4","extend":"~2.0.1"},"repository":{"type":"git","url":"https://github.com/TehShrike/levelup-cache.git"},"license":"WTFPL","gitHead":"882447b6a19b64ffef48d6ab067f196bfd26c688","bugs":{"url":"https://github.com/TehShrike/levelup-cache/issues"},"homepage":"https://github.com/TehShrike/levelup-cache","_id":"levelup-cache@1.1.9","_shasum":"966f8f2002808758d4a8fc0eb1ec57c346908129","_from":".","_npmVersion":"2.9.0","_nodeVersion":"2.0.1","_npmUser":{"name":"tehshrike","email":"me@JoshDuff.com"},"maintainers":[{"name":"tehshrike","email":"me@JoshDuff.com"}],"dist":{"shasum":"966f8f2002808758d4a8fc0eb1ec57c346908129","tarball":"https://registry.npmjs.org/levelup-cache/-/levelup-cache-1.1.9.tgz","integrity":"sha512-R97/eOQatjANPIPmY4lxb/n6U3A/uZ3CHRanW+fbTNBLHjibuU7pUOdvcIQNaoc+GpyVOGEMrNkWoToeaSrf1w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC8rRi+IWI+1QOT0LwRwrF0KAf4VPNZ3JDp1ZzuOywn7QIhANxfCNbut7X28NMeRns0nn1CEr3rqwSfqCjTo7srwf3D"}]}},"2.0.0":{"name":"levelup-cache","version":"2.0.0","description":"Use LevelUP to cache remote data","main":"index.js","directories":{"test":"test"},"devDependencies":{"level-mem":"~0.18.0","tape":"^4.0.0"},"scripts":{"test":"tape ./test/*.js"},"dependencies":{"asynquence":"~0.6.0-b","expire-unused-keys":"^1.0.4","extend":"~2.0.1","stringmap":"~0.2.2","subleveldown":"^2.0.0"},"repository":{"type":"git","url":"https://github.com/TehShrike/levelup-cache.git"},"license":"WTFPL","gitHead":"884f5f71255f21eea37f4a619aea5d34c7f9cb84","bugs":{"url":"https://github.com/TehShrike/levelup-cache/issues"},"homepage":"https://github.com/TehShrike/levelup-cache","_id":"levelup-cache@2.0.0","_shasum":"d38c04715fabda3e33c9989afbfb21f7e73a3b99","_from":".","_npmVersion":"2.9.0","_nodeVersion":"2.0.1","_npmUser":{"name":"tehshrike","email":"me@JoshDuff.com"},"maintainers":[{"name":"tehshrike","email":"me@JoshDuff.com"}],"dist":{"shasum":"d38c04715fabda3e33c9989afbfb21f7e73a3b99","tarball":"https://registry.npmjs.org/levelup-cache/-/levelup-cache-2.0.0.tgz","integrity":"sha512-5d/RU08JBMGgUh7hBGW/LRb39bwwwRJkyrc1rJBLx1Y2XT93xGqUCViTqHlMj234R7Cb7+RdPAoag1kIXl0isA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDTUesOMKYTjaAAewKDC/5FBI8dRSVc2+TbvGWRk7tkXQIgfnJB6jZWmoBEGJCW3lg6VzlVYqecVpPHoSE44PB+EQg="}]}},"2.1.0":{"name":"levelup-cache","version":"2.1.0","description":"Use LevelUP to cache remote data","main":"index.js","directories":{"test":"test"},"devDependencies":{"asynquence":"0.8.2","faucet":"0.0.1","level-mem":"~0.18.0","tape":"^4.0.0"},"scripts":{"test":"tape ./test/*.js | faucet"},"dependencies":{"expire-unused-keys":"^1.0.4","subleveldown":"^2.0.0","xtend":"4.0.0"},"repository":{"type":"git","url":"git+https://github.com/TehShrike/levelup-cache.git"},"license":"WTFPL","gitHead":"b168d96eee4f7dd08baf42057ab2e4d40dbb9809","bugs":{"url":"https://github.com/TehShrike/levelup-cache/issues"},"homepage":"https://github.com/TehShrike/levelup-cache#readme","_id":"levelup-cache@2.1.0","_shasum":"d14695df6665793e369a1990d4ba855d03abe431","_from":".","_npmVersion":"2.14.2","_nodeVersion":"2.0.1","_npmUser":{"name":"tehshrike","email":"me@JoshDuff.com"},"maintainers":[{"name":"tehshrike","email":"me@JoshDuff.com"}],"dist":{"shasum":"d14695df6665793e369a1990d4ba855d03abe431","tarball":"https://registry.npmjs.org/levelup-cache/-/levelup-cache-2.1.0.tgz","integrity":"sha512-awWGpu/mCPIL+/S+MHsWS/sfPF+wKScmbaz77PiH91tXF3AL6ToLMX0XubacohXNUfEuUmHquPkf5pGQ0DZoLw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBjAKhu+sBqfByc7XbLPOJQszJWkAkMcAHSOw4wM41ZXAiEA8+4zvV3ytEXCE+7X60XI1+3hghIWneC5m73zwMwd3lQ="}]}},"2.1.1":{"name":"levelup-cache","version":"2.1.1","description":"Use LevelUP to cache remote data","main":"index.js","directories":{"test":"test"},"devDependencies":{"asynquence":"0.8.2","faucet":"0.0.1","level-mem":"~0.18.0","tape":"^4.0.0"},"scripts":{"test":"tape ./test/*.js | faucet"},"dependencies":{"expire-unused-keys":"^1.3.0","subleveldown":"^2.0.0","xtend":"4.0.0"},"repository":{"type":"git","url":"git+https://github.com/TehShrike/levelup-cache.git"},"license":"WTFPL","gitHead":"4d27d00c9c0dd905d168e4f0091c92267cd81df8","bugs":{"url":"https://github.com/TehShrike/levelup-cache/issues"},"homepage":"https://github.com/TehShrike/levelup-cache#readme","_id":"levelup-cache@2.1.1","_shasum":"4e97487eb8cee33ee90cff6a7b3d613189ca38c8","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.1.1","_npmUser":{"name":"tehshrike","email":"me@JoshDuff.com"},"maintainers":[{"name":"tehshrike","email":"me@JoshDuff.com"}],"dist":{"shasum":"4e97487eb8cee33ee90cff6a7b3d613189ca38c8","tarball":"https://registry.npmjs.org/levelup-cache/-/levelup-cache-2.1.1.tgz","integrity":"sha512-+QCmrOzgUlBLdLyfPLphOkJ7ZeAvSbRNSidNaPQ1cluJupvuBgGlolJwmyRlL1rrN+vTFhg1oV1e/1aWkvhw2g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+Jmk3GdtyZWtG8wmZFw6WBYR6V6oUU7pt2rRIErIUQQIgFSEqlelhxpqXRCYHkNS6tsXF4c+8evzweoSFCi2D1do="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/levelup-cache-2.1.1.tgz_1460425305014_0.18154531461186707"}},"2.2.0":{"name":"levelup-cache","version":"2.2.0","description":"Use LevelUP to cache remote data","main":"index.js","directories":{"test":"test"},"devDependencies":{"asynquence":"0.8.2","faucet":"0.0.1","level-mem":"~0.18.0","tape":"^4.0.0"},"scripts":{"test":"tape ./test/*.js | faucet"},"dependencies":{"async-each":"1.0.0","expire-unused-keys":"^1.4.0","subleveldown":"^2.0.0","xtend":"4.0.0"},"repository":{"type":"git","url":"git+https://github.com/TehShrike/levelup-cache.git"},"license":"WTFPL","gitHead":"83cb097fe05b051a1e22cc6387c4bdde1027fa90","bugs":{"url":"https://github.com/TehShrike/levelup-cache/issues"},"homepage":"https://github.com/TehShrike/levelup-cache#readme","_id":"levelup-cache@2.2.0","_shasum":"7e852a128869d6094b0b1ddc3afaa89bed96df59","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.1.0","_npmUser":{"name":"tehshrike","email":"me@JoshDuff.com"},"maintainers":[{"name":"tehshrike","email":"me@JoshDuff.com"}],"dist":{"shasum":"7e852a128869d6094b0b1ddc3afaa89bed96df59","tarball":"https://registry.npmjs.org/levelup-cache/-/levelup-cache-2.2.0.tgz","integrity":"sha512-4Z6CHW3fOBT+607Yj3RVtWW07KVXd2aRqsZrRtNCnYzI9kANoyosbb7Z15ppBblBPlCj/9w5IUSNI4LJHKNXaQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDfj55acY/F3rgp8niQu7dA55w3xNMJT+BrrQFvpNJ/sAIhAMgLNTWvVUJ27ESc4HAlaDQ2CYJcZ+xT2B2seE57cGaf"}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/levelup-cache-2.2.0.tgz_1471463335758_0.01704709674231708"}},"2.3.0":{"name":"levelup-cache","version":"2.3.0","description":"Use LevelUP to cache remote data","main":"index.js","engines":{"node":">=6.0.0"},"directories":{"test":"test"},"devDependencies":{"asynquence":"0.8.2","babel-preset-es2015":"6.14.0","babelify":"7.3.0","browserify":"13.1.0","faucet":"0.0.1","level-mem":"~0.18.0","tape":"^4.0.0","tape-run":"2.1.4"},"scripts":{"test":"npm run browser-test && npm run browser-test","node-test":"tape ./test/*.js | faucet","browser-test":"browserify ./test/*.js | tape-run"},"dependencies":{"async-each":"1.0.0","expire-unused-keys":"~1.4.0","gate-keeper":"~1.2.0","key-master":"2.0.0","subleveldown":"~2.1.0","xtend":"4.0.0"},"repository":{"type":"git","url":"git+https://github.com/TehShrike/levelup-cache.git"},"license":"WTFPL","browserify":{"transform":[["babelify",{"presets":"es2015"}]]},"gitHead":"aee062820b962d9ab822d6c77def8585685d8c4e","bugs":{"url":"https://github.com/TehShrike/levelup-cache/issues"},"homepage":"https://github.com/TehShrike/levelup-cache#readme","_id":"levelup-cache@2.3.0","_shasum":"3b4c036430f6fe67369c87bd590a54a2bd0fbf13","_from":".","_npmVersion":"3.10.8","_nodeVersion":"7.0.0","_npmUser":{"name":"tehshrike","email":"me@JoshDuff.com"},"maintainers":[{"name":"tehshrike","email":"me@JoshDuff.com"}],"dist":{"shasum":"3b4c036430f6fe67369c87bd590a54a2bd0fbf13","tarball":"https://registry.npmjs.org/levelup-cache/-/levelup-cache-2.3.0.tgz","integrity":"sha512-rVuTuaMeWdqgZZ8CvT/mvspQmObTiZ1iMspMqNQY7LId8gxOfSdapZTypPIY5Tgk0xNR+imKqK3WBlRtUXtOcw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCOsUEt+of++l8dT8C7fA9/A6uY3um1KWJ0JUXgcWkQ3wIhAIAn3OM0NaKIpZ/YpbLYZFSNQEpbAwnPgawTAS9gg/D8"}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/levelup-cache-2.3.0.tgz_1478397688284_0.6344224545173347"}}},"readme":"[![Build Status](https://travis-ci.org/TehShrike/levelup-cache.svg)](https://travis-ci.org/TehShrike/levelup-cache)\n\nUse a [LevelUP](https://github.com/rvagg/node-levelup) database to cache remote data from somewhere else - data that you'll want to automatically reload every so often.\n\nJust provide a getter function and a LevelUP store, and you're good to go.\n\nTests are welcome, as are small features.  Add a Github issue or something with thoughts.\n\n**Breaking version change:** levelup-cache 2.0.0 uses [subleveldown](https://www.npmjs.com/package/subleveldown) instead of [sublevel 5.x](https://www.npmjs.com/package/sublevel).\n\n# Priorities/features\n\nWhy use this library instead of something else like [level-ttl-cache](https://github.com/rvagg/level-ttl-cache)?  This module has a few specific priorities in mind not met by any module I stumbled on while I was looking:\n\n- Return a value as quickly as possible, no matter how old it is\n- Automatically call the getter function to check for new values every so often (regardless of when the key was last accessed)\n- Emit events when changes are detected\n- Drop items from the cache after they go long enough without being requested (regardless of when the key's value was last refreshed/changed)\n\n# Example\n\n```js\n\n\tvar source = {\n\t\t'some key': { id: 1, content: 'sup dawg' },\n\t\t'some other key': { id: 2, content: 'sup doge' }\n\t}\n\n\tfunction fetchFromSomewhere(key, cb) {\n\t\tsetTimeout(function() {\n\t\t\tcb(false, source[key])\n\t\t}, 100)\n\t}\n\n\tt.plan(5)\n\n\t// Cache implementation example \\\\\n\n\tvar options = {\n\t\trefreshEvery: 10 * 1000,\n\t\tcheckToSeeIfItemsNeedToBeRefreshedEvery: 5 * 1000,\n\t\tttl: 24 * 60 * 60 * 1000,\n\t\tcomparison: function defaultComparison(a, b) {\n\t\t\treturn a.id === b.id && a.content === b.content\n\t\t}\n\t}\n\n\tvar cache = new Cache(levelUpDb, function(key, cb) {\n\t\tfetchFromSomewhere(key, cb)\n\t}, options)\n\n\tcache.get('some key', function(err, value) {\n\t\tt.equal(1, value.id)\n\t\tt.equal('sup dawg', value.content)\n\t})\n\n\tcache.once('change', function(key, value) {\n\t\tt.equal('sup dawg', value.content)\n\n\t\tandThenDoThisThing()\n\t})\n\n\tfunction andThenDoThisThing() {\n\t\tcache.once('change', function(key, value) {\n\t\t\tt.equal(2, value.id)\n\t\t\tt.equal('sup doge', value.content)\n\n\t\t\tcache.stop()\n\t\t})\n\n\t\tcache.refresh('some other key')\n\t}\n\n```\n\n# Usage\n\nThe module returns a constructor function (call it with or without new, I don't care):\n\n## (levelUpDb, getter, [options])\n\nThe getter function should accept two parameters: the first being the key, a string, and the second being the callback to call once you've fetched your value (passing in error, value arguments of course).\n\n## options\n\n### refreshEvery\n\nHow often the cache will wait before it goes out to see if there is a new value for a given key, in ms.\n\nDefaults to 12 hours.\n\n### checkToSeeIfItemsNeedToBeRefreshedEvery\n\nI'm awesome at naming variables, aren't I?  This value determines how often the cache will check to see if it ought to be going out and looking for new values (if any keys have exceeded their refreshEvery time), in ms.  This is how much \"wiggle room\" there is in the timing - if you have the cache set to refresh every ten seconds, but this option is set to two seconds, you could go as long as twelve seconds before the value was actually reloaded.  Gasp.\n\nDefaults to 1 second.\n\n### ttl\n\nHow long to let a key sit around in the cache (with its value being automatically refreshed whenever refreshEvery has elapsed) before dropping it.  This time-to-live is counted from the last time that a value was passed back to the user via a get or refresh call.\n\nDefaults to 7 days.\n\n### comparison\n\nA function that determines whether or not two values are the same.  If a value is loaded via the getter function, and it is different from the value that it is replacing, a \"change\" event is emitted with the key, value, and previous value as arguments.\n\nDefaults to function(a, b) { a === b }\n\n## Functions on the object returned by the constructor function\n\n### get(key, callback)\n\nCalls the callback function with the cached value from the local db.  If no cached value is found, the getter is called to grab the current value.  The callback function is called with (error, value) arguments.\n\n### getLocal(key, callback)\n\nAbout the same as that last function, except that if the value isn't in the local db, it doesn't bother going out to get a value with the getter function, it just calls the callback with an error object having the traditional notFound property.\n\n### refresh(key, [cb])\n\nCauses the cache to call the getter and store the found value, no matter how fresh the currently stored value is (or if there was a currently stored value for that key at all).\n\n### clearKey(key, [cb])\n\nClears any value associated with the given key from the cache.  Also clears any stored timing/refresh information.\n\nThis is the same action that happens when a key in the cache expires naturally.\n\n### stop\n\nStops any timeouts currently floating around, so that your process can exit without you having to get all kill-happy on it.\n\n## Events\n\n### load (key, newValue)\n\nEmitted whenever the getter function returns with a value.\n\n### change (key, newValue, previousValue)\n\nEmitted whenever the getter function returns with a value, and that value is different from the value that had been previously stored in the cache (using the comparison function from the options to determine whether or not the values are different).\n\n# License\n[WTFPL](http://wtfpl2.com)\n","maintainers":[{"name":"tehshrike","email":"me@JoshDuff.com"}],"time":{"modified":"2022-06-19T11:53:53.417Z","created":"2013-12-14T21:04:40.855Z","1.0.0":"2013-12-14T21:04:42.004Z","1.1.1":"2013-12-18T07:13:12.926Z","1.1.2":"2013-12-22T21:56:32.549Z","1.1.3":"2014-04-22T00:07:20.803Z","1.1.4":"2014-05-06T03:06:32.571Z","1.1.5":"2014-05-15T03:57:53.051Z","1.1.6":"2014-05-15T04:18:06.811Z","1.1.7":"2014-10-25T15:43:23.829Z","1.1.8":"2014-10-25T17:56:33.227Z","1.1.9":"2015-05-17T04:58:09.521Z","2.0.0":"2015-05-22T16:38:11.109Z","2.1.0":"2015-10-02T23:55:10.559Z","2.1.1":"2016-04-12T01:41:46.405Z","2.2.0":"2016-08-17T19:48:56.494Z","2.3.0":"2016-11-06T02:01:30.462Z"},"repository":{"type":"git","url":"git+https://github.com/TehShrike/levelup-cache.git"},"homepage":"https://github.com/TehShrike/levelup-cache#readme","bugs":{"url":"https://github.com/TehShrike/levelup-cache/issues"},"license":"WTFPL","readmeFilename":"readme.md"}