{"_id":"cache-point","_rev":"3918668","name":"cache-point","description":"Simple, filesystem-backed memoisation cache.","dist-tags":{"latest":"3.0.1"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"time":{"modified":"2025-09-01T01:21:02.000Z","created":"2016-07-24T18:29:52.485Z","3.0.1":"2024-12-06T00:06:31.888Z","3.0.0":"2024-08-24T21:34:19.814Z","2.0.0":"2019-12-03T19:23:44.078Z","1.0.0":"2019-10-12T22:25:15.340Z","0.4.1":"2017-07-30T19:06:51.727Z","0.4.0":"2017-02-08T20:56:23.792Z","0.3.4":"2016-10-09T21:29:49.743Z","0.3.3":"2016-08-04T08:19:38.278Z","0.3.2":"2016-08-01T20:55:14.593Z","0.3.1":"2016-08-01T20:21:41.127Z","0.3.0":"2016-08-01T19:18:01.408Z","0.2.0":"2016-07-29T22:46:40.185Z","0.1.4":"2016-07-29T21:34:27.309Z","0.1.3":"2016-07-29T21:29:55.265Z","0.1.2":"2016-07-24T22:09:41.708Z","0.1.1":"2016-07-24T21:04:01.567Z","0.1.0":"2016-07-24T18:29:52.485Z"},"users":{},"author":{"name":"Lloyd Brookes","email":"opensource@75lb.com"},"repository":{"type":"git","url":"git+https://github.com/75lb/cache-point.git"},"versions":{"3.0.1":{"name":"cache-point","author":{"name":"Lloyd Brookes","email":"opensource@75lb.com"},"version":"3.0.1","description":"Simple, filesystem-backed memoisation cache.","repository":{"type":"git","url":"git+https://github.com/75lb/cache-point.git"},"type":"module","exports":{"import":"./index.js","require":"./dist/index.cjs"},"keywords":["memoisation","memoization","cache","file","store"],"license":"MIT","engines":{"node":">=12.17"},"scripts":{"test":"npm run dist && npm run test:ci","test:ci":"75lb-nature test-runner test/async.js test/sync.js","dist":"75lb-nature cjs-build index.js","docs":"75lb-nature jsdoc2md -t README.hbs index.js > README.md"},"dependencies":{"array-back":"^6.2.2"},"peerDependencies":{"@75lb/nature":"latest"},"peerDependenciesMeta":{"@75lb/nature":{"optional":true}},"standard":{"ignore":["tmp","dist"],"envs":[]},"_id":"cache-point@3.0.1","gitHead":"09f45df8b030202faff58a86ba8493ebaeb86c2a","bugs":{"url":"https://github.com/75lb/cache-point/issues"},"homepage":"https://github.com/75lb/cache-point#readme","_nodeVersion":"23.3.0","_npmVersion":"10.9.0","dist":{"shasum":"4a1997794695be780e1d080235aa7a289161f181","size":3973,"noattachment":false,"key":"/cache-point/-/cache-point-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/cache-point/download/cache-point-3.0.1.tgz"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"directories":{},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cache-point_3.0.1_1733443591697_0.5919862549024011"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-12-06T00:06:31.888Z","publish_time":1733443591888,"_source_registry_name":"default","_cnpm_publish_time":1733443591888},"3.0.0":{"name":"cache-point","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"3.0.0","description":"Simple, filesystem-backed memoisation cache.","repository":{"type":"git","url":"git+https://github.com/75lb/cache-point.git"},"type":"module","exports":{"import":"./index.js","require":"./dist/index.cjs"},"keywords":["memoisation","memoization","cache","file","store"],"license":"MIT","engines":{"node":">=12.17"},"scripts":{"test":"npm run dist && npm run test:ci","test:ci":"75lb-nature test test/async.js test/sync.js","dist":"75lb-nature cjs-build index.js","docs":"75lb-nature jsdoc2md -t README.hbs index.js > README.md"},"dependencies":{"array-back":"^6.2.2"},"peerDependencies":{"@75lb/nature":"^0.1.1"},"peerDependenciesMeta":{"@75lb/nature":{"optional":true}},"standard":{"ignore":["tmp","dist"],"envs":[]},"_id":"cache-point@3.0.0","gitHead":"5f69633eefe07deab018e5e38b1622092b954906","bugs":{"url":"https://github.com/75lb/cache-point/issues"},"homepage":"https://github.com/75lb/cache-point#readme","_nodeVersion":"22.7.0","_npmVersion":"10.8.2","dist":{"shasum":"4d9035faae682414328334329cc18e1db7d0cf5d","size":4403,"noattachment":false,"key":"/cache-point/-/cache-point-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/cache-point/download/cache-point-3.0.0.tgz"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"directories":{},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cache-point_3.0.0_1724535259674_0.6533782689859993"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-08-24T21:34:19.814Z","publish_time":1724535259814,"_source_registry_name":"default","_cnpm_publish_time":1724535259814},"2.0.0":{"name":"cache-point","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"2.0.0","description":"Simple, filesystem-backed memoisation cache.","repository":{"type":"git","url":"git+https://github.com/75lb/cache-point.git"},"license":"MIT","keywords":["memoisation","memoization","cache","file","store"],"engines":{"node":">=8"},"scripts":{"test":"test-runner test/*.js","docs":"jsdoc2md -t README.hbs index.js > README.md"},"devDependencies":{"jsdoc-to-markdown":"^5.0.3","test-runner":"~0.8.7"},"dependencies":{"array-back":"^4.0.1","fs-then-native":"^2.0.0","mkdirp2":"^1.0.4"},"gitHead":"438eefe196ad9d8c7687e1c774c51245c2551a96","bugs":{"url":"https://github.com/75lb/cache-point/issues"},"homepage":"https://github.com/75lb/cache-point#readme","_id":"cache-point@2.0.0","_nodeVersion":"13.2.0","_npmVersion":"6.13.1","dist":{"shasum":"91e03c38da9cfba9d95ac6a34d24cfe6eff8920f","size":3641,"noattachment":false,"key":"/cache-point/-/cache-point-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/cache-point/download/cache-point-2.0.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cache-point_2.0.0_1575401023986_0.5509894689603325"},"_hasShrinkwrap":false,"publish_time":1575401024078,"_cnpm_publish_time":1575401024078},"1.0.0":{"name":"cache-point","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.0.0","description":"Simple, filesystem-backed memoisation cache.","repository":{"type":"git","url":"git+https://github.com/75lb/cache-point.git"},"license":"MIT","keywords":["memoisation","memoization","cache","file","store"],"engines":{"node":">=8"},"scripts":{"test":"test-runner test/*.js","docs":"jsdoc2md -t README.hbs index.js > README.md"},"devDependencies":{"jsdoc-to-markdown":"^5.0.2","test-runner":"~0.6.0"},"dependencies":{"array-back":"^4.0.0","fs-then-native":"^2.0.0","mkdirp2":"^1.0.4"},"gitHead":"242e9caf228472c2d3f5329694fbcdc9577b8eac","bugs":{"url":"https://github.com/75lb/cache-point/issues"},"homepage":"https://github.com/75lb/cache-point#readme","_id":"cache-point@1.0.0","_nodeVersion":"12.11.1","_npmVersion":"6.12.0","dist":{"shasum":"3d9769fc04d7a5b3005fc6258e6ebcaccb5f15f3","size":3481,"noattachment":false,"key":"/cache-point/-/cache-point-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/cache-point/download/cache-point-1.0.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cache-point_1.0.0_1570919115192_0.834834622734848"},"_hasShrinkwrap":false,"publish_time":1570919115340,"_cnpm_publish_time":1570919115340},"0.4.1":{"name":"cache-point","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.4.1","description":"Simple, filesystem-backed memoisation cache.","repository":{"type":"git","url":"git+https://github.com/75lb/cache-point.git"},"license":"MIT","main":"lib/cache-point","keywords":["memoisation","memoization","cache","file","store"],"engines":{"node":">=4.0.0"},"scripts":{"test":"test-runner test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"devDependencies":{"jsdoc-to-markdown":"^3.0.0","test-runner":"~0.4.0"},"dependencies":{"array-back":"^2.0.0","fs-then-native":"^2.0.0","mkdirp2":"^1.0.3"},"gitHead":"0860b736d453c168b7e47ea09433316612236c41","bugs":{"url":"https://github.com/75lb/cache-point/issues"},"homepage":"https://github.com/75lb/cache-point#readme","_id":"cache-point@0.4.1","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"cc8c9cbd99d90d7b0c66910cd33d77a1aab8840e","size":19187,"noattachment":false,"key":"/cache-point/-/cache-point-0.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/cache-point/download/cache-point-0.4.1.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cache-point-0.4.1.tgz_1501441610667_0.6508370190858841"},"directories":{},"publish_time":1501441611727,"_hasShrinkwrap":false,"_cnpm_publish_time":1501441611727},"0.4.0":{"name":"cache-point","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.4.0","description":"Simple, filesystem-backed memoisation cache.","repository":{"type":"git","url":"git+https://github.com/75lb/cache-point.git"},"license":"MIT","main":"lib/cache-point","keywords":["memoisation","memoization","cache","file","store"],"engines":{"node":">=4.0.0"},"scripts":{"test":"test-runner test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"devDependencies":{"jsdoc-to-markdown":"^2.0.1","test-runner":"~0.3.0"},"dependencies":{"array-back":"^1.0.4","fs-then-native":"^2.0.0","mkdirp":"~0.5.1"},"gitHead":"396d37f5b591b1f0ae6abaedc3894f4a936bc0d2","bugs":{"url":"https://github.com/75lb/cache-point/issues"},"homepage":"https://github.com/75lb/cache-point#readme","_id":"cache-point@0.4.0","_shasum":"2797f68055970757c87e89b464978e74e11047b0","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"2797f68055970757c87e89b464978e74e11047b0","size":4518,"noattachment":false,"key":"/cache-point/-/cache-point-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/cache-point/download/cache-point-0.4.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/cache-point-0.4.0.tgz_1486587381832_0.27675697091035545"},"directories":{},"publish_time":1486587383792,"_cnpm_publish_time":1486587383792,"_hasShrinkwrap":false},"0.3.4":{"name":"cache-point","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.3.4","description":"Simple, filesystem-backed memoisation cache.","repository":{"type":"git","url":"git+https://github.com/75lb/cache-point.git"},"license":"MIT","main":"index","keywords":["memoisation","memoization","cache","file","store"],"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js","docs":"jsdoc2md -t jsdoc2md/README.hbs src/lib/*.js > README.md; echo","es5":"rm -rf es5 && babel --presets babel-preset-es2015 --no-comments src --out-dir es5"},"devDependencies":{"babel-preset-es2015":"^6.16.0","core-assert":"~0.2.1","jsdoc-to-markdown":"^2.0.0-alpha.0","test-runner":"~0.2.5"},"dependencies":{"array-back":"^1.0.3","core-js":"^2.4.1","feature-detect-es6":"^1.3.1","fs-then-native":"^1.0.2","mkdirp":"~0.5.1"},"gitHead":"569d7a1f832aee1e1b4e5eb2d530513b0ccb7332","bugs":{"url":"https://github.com/75lb/cache-point/issues"},"homepage":"https://github.com/75lb/cache-point#readme","_id":"cache-point@0.3.4","_shasum":"152db502c6bb23b5aa3f663e230d5de8ec4e4f3f","_from":".","_npmVersion":"3.10.7","_nodeVersion":"6.7.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"152db502c6bb23b5aa3f663e230d5de8ec4e4f3f","size":5896,"noattachment":false,"key":"/cache-point/-/cache-point-0.3.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/cache-point/download/cache-point-0.3.4.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/cache-point-0.3.4.tgz_1476048587782_0.5622283685952425"},"directories":{},"publish_time":1476048589743,"_cnpm_publish_time":1476048589743,"_hasShrinkwrap":false},"0.3.3":{"name":"cache-point","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.3.3","description":"Simple, filesystem-backed memoisation cache.","repository":{"type":"git","url":"git+https://github.com/75lb/cache-point.git"},"license":"MIT","main":"index","keywords":["memoisation","memoization","cache","file","store"],"engines":{"node":">=0.10.0"},"scripts":{"test":"test-runner test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo","es5":"babel --presets babel-preset-es2015 --no-comments lib --out-dir es5"},"devDependencies":{"babel-preset-es2015":"^6.9.0","core-assert":"~0.2.0","jsdoc-to-markdown":"^2.0.0-alpha.0","test-runner":"~0.1.8"},"dependencies":{"array-back":"^1.0.3","core-js":"^2.4.1","feature-detect-es6":"^1.3.1","mkdirp":"~0.5.1"},"gitHead":"d7f36f7324d6066a774c0222e8f5c3cf350199c0","bugs":{"url":"https://github.com/75lb/cache-point/issues"},"homepage":"https://github.com/75lb/cache-point#readme","_id":"cache-point@0.3.3","_shasum":"dfb95eddfd431c0bf554307879aa5c28891101e0","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"dfb95eddfd431c0bf554307879aa5c28891101e0","size":5572,"noattachment":false,"key":"/cache-point/-/cache-point-0.3.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/cache-point/download/cache-point-0.3.3.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/cache-point-0.3.3.tgz_1470298776839_0.016576946014538407"},"directories":{},"publish_time":1470298778278,"_cnpm_publish_time":1470298778278,"_hasShrinkwrap":false},"0.3.2":{"name":"cache-point","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.3.2","description":"Simple, filesystem-backed memoisation cache.","repository":{"type":"git","url":"git+https://github.com/75lb/cache-point.git"},"license":"MIT","main":"index","keywords":["memoisation","memoization","cache","file","store"],"engines":{"node":">=0.10.0"},"scripts":{"test":"test-runner test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo","es5":"babel --presets babel-preset-es2015 --no-comments lib --out-dir es5"},"devDependencies":{"babel-preset-es2015":"^6.9.0","core-assert":"~0.2.0","test-runner":"~0.1.8"},"dependencies":{"array-back":"^1.0.3","core-js":"^2.4.1","feature-detect-es6":"^1.3.1","mkdirp":"~0.5.1"},"gitHead":"5f62d82855f09bfdee60d72b7a9683b6711dc2cb","bugs":{"url":"https://github.com/75lb/cache-point/issues"},"homepage":"https://github.com/75lb/cache-point#readme","_id":"cache-point@0.3.2","_shasum":"5b91e73477bfeabea9e94a9b0197dec9f7e8581a","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"5b91e73477bfeabea9e94a9b0197dec9f7e8581a","size":5531,"noattachment":false,"key":"/cache-point/-/cache-point-0.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/cache-point/download/cache-point-0.3.2.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/cache-point-0.3.2.tgz_1470084913780_0.43742854450829327"},"directories":{},"publish_time":1470084914593,"_cnpm_publish_time":1470084914593,"_hasShrinkwrap":false},"0.3.1":{"name":"cache-point","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.3.1","description":"Simple, filesystem-backed memoisation cache.","repository":{"type":"git","url":"git+https://github.com/75lb/cache-point.git"},"license":"MIT","main":"index","keywords":["memoisation","memoization","cache","file","store"],"engines":{"node":">=0.10.0"},"scripts":{"test":"test-runner test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo","es5":"babel --presets babel-preset-es2015 --no-comments lib --out-dir es5"},"devDependencies":{"core-assert":"~0.2.0","test-runner":"~0.1.8"},"dependencies":{"array-back":"^1.0.3","babel-preset-es2015":"^6.9.0","core-js":"^2.4.1","feature-detect-es6":"^1.3.1","mkdirp":"~0.5.1"},"gitHead":"0de62e9b325f0144a4d6caf9865f15da1e6e527d","bugs":{"url":"https://github.com/75lb/cache-point/issues"},"homepage":"https://github.com/75lb/cache-point#readme","_id":"cache-point@0.3.1","_shasum":"0a93517002f899bc3315f31bc8939da4af29ff4f","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"0a93517002f899bc3315f31bc8939da4af29ff4f","size":5531,"noattachment":false,"key":"/cache-point/-/cache-point-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/cache-point/download/cache-point-0.3.1.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/cache-point-0.3.1.tgz_1470082899272_0.9533984854351729"},"directories":{},"publish_time":1470082901127,"_cnpm_publish_time":1470082901127,"_hasShrinkwrap":false},"0.3.0":{"name":"cache-point","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.3.0","description":"cache-point","repository":{"type":"git","url":"git+https://github.com/75lb/cache-point.git"},"license":"MIT","main":"index","keywords":[],"engines":{"node":">=0.10.0"},"scripts":{"test":"test-runner test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo","es5":"babel --presets babel-preset-es2015 --no-comments lib --out-dir es5"},"devDependencies":{"core-assert":"~0.2.0","test-runner":"~0.1.8"},"dependencies":{"array-back":"^1.0.3","babel-preset-es2015":"^6.9.0","core-js":"^2.4.1","feature-detect-es6":"^1.3.1","mkdirp":"~0.5.1"},"gitHead":"2bac4af72c37626c368b063a911c93a1cf7e3ebd","bugs":{"url":"https://github.com/75lb/cache-point/issues"},"homepage":"https://github.com/75lb/cache-point#readme","_id":"cache-point@0.3.0","_shasum":"8375c19e0b6ac53a49b205618d128f85bc7904d2","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"8375c19e0b6ac53a49b205618d128f85bc7904d2","size":4727,"noattachment":false,"key":"/cache-point/-/cache-point-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/cache-point/download/cache-point-0.3.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/cache-point-0.3.0.tgz_1470079080506_0.7501430360134691"},"directories":{},"publish_time":1470079081408,"_cnpm_publish_time":1470079081408,"_hasShrinkwrap":false},"0.2.0":{"name":"cache-point","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.2.0","description":"cache-point","repository":{"type":"git","url":"git+https://github.com/75lb/cache-point.git"},"license":"MIT","main":"index","keywords":[],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo","es5":"babel --presets babel-preset-es2015 --no-comments lib --out-dir es5"},"devDependencies":{"tape":"^4.6.0"},"dependencies":{"array-back":"^1.0.3","babel-preset-es2015":"^6.9.0","core-js":"^2.4.1","feature-detect-es6":"^1.3.1","mkdirp":"~0.5.1"},"gitHead":"aa3e7917e936564c07c725b485ea71bb37aae23c","bugs":{"url":"https://github.com/75lb/cache-point/issues"},"homepage":"https://github.com/75lb/cache-point#readme","_id":"cache-point@0.2.0","_shasum":"bf842a0f15bb53fae2dd5850df0b770c9a591e2f","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"bf842a0f15bb53fae2dd5850df0b770c9a591e2f","size":4181,"noattachment":false,"key":"/cache-point/-/cache-point-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/cache-point/download/cache-point-0.2.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/cache-point-0.2.0.tgz_1469832397210_0.8601959818042815"},"directories":{},"publish_time":1469832400185,"_cnpm_publish_time":1469832400185,"_hasShrinkwrap":false},"0.1.4":{"name":"cache-point","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.1.4","description":"cache-point","repository":{"type":"git","url":"git+https://github.com/75lb/cache-point.git"},"license":"MIT","main":"index","keywords":[],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo","es5":"babel --presets babel-preset-es2015 --no-comments lib --out-dir es5"},"devDependencies":{"tape":"^4.6.0"},"dependencies":{"array-back":"^1.0.3","babel-preset-es2015":"^6.9.0","core-js":"^2.4.1","feature-detect-es6":"^1.3.1","mkdirp":"~0.5.1"},"gitHead":"d553dbdaf5910a1f1416c9f4ff6f29e84ccddfaf","bugs":{"url":"https://github.com/75lb/cache-point/issues"},"homepage":"https://github.com/75lb/cache-point#readme","_id":"cache-point@0.1.4","_shasum":"076fd5bde0d87b6ad8c71423f290d990cfc6f101","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"076fd5bde0d87b6ad8c71423f290d990cfc6f101","size":4123,"noattachment":false,"key":"/cache-point/-/cache-point-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/cache-point/download/cache-point-0.1.4.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/cache-point-0.1.4.tgz_1469828065333_0.3974387589842081"},"directories":{},"publish_time":1469828067309,"_cnpm_publish_time":1469828067309,"_hasShrinkwrap":false},"0.1.3":{"name":"cache-point","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.1.3","description":"cache-point","repository":{"type":"git","url":"git+https://github.com/75lb/cache-point.git"},"license":"MIT","main":"index","keywords":[],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo","es5":"babel --presets babel-preset-es2015 --no-comments lib --out-dir es5"},"devDependencies":{"tape":"^4.6.0"},"dependencies":{"array-back":"^1.0.3","babel-preset-es2015":"^6.9.0","core-js":"^2.4.1","feature-detect-es6":"^1.3.1","mkdirp":"~0.5.1"},"gitHead":"138157faddd301a4cc6c97d178f8212daad347d5","bugs":{"url":"https://github.com/75lb/cache-point/issues"},"homepage":"https://github.com/75lb/cache-point#readme","_id":"cache-point@0.1.3","_shasum":"d9fff9cf5d2c38f5b46e738c2db51aafded2f5b7","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"d9fff9cf5d2c38f5b46e738c2db51aafded2f5b7","size":4143,"noattachment":false,"key":"/cache-point/-/cache-point-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/cache-point/download/cache-point-0.1.3.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/cache-point-0.1.3.tgz_1469827792281_0.7924676551483572"},"directories":{},"publish_time":1469827795265,"_cnpm_publish_time":1469827795265,"_hasShrinkwrap":false},"0.1.2":{"name":"cache-point","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.1.2","description":"cache-point","repository":{"type":"git","url":"git+https://github.com/75lb/cache-point.git"},"license":"MIT","main":"index","keywords":[],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo","es5":"babel --presets babel-preset-es2015 --no-comments lib --out-dir es5"},"devDependencies":{"tape":"^4.6.0"},"dependencies":{"array-back":"^1.0.3","babel-preset-es2015":"^6.9.0","core-js":"^2.4.1","feature-detect-es6":"^1.3.1"},"gitHead":"30dfb535903f948d1fd1e5c18decc03643f18821","bugs":{"url":"https://github.com/75lb/cache-point/issues"},"homepage":"https://github.com/75lb/cache-point#readme","_id":"cache-point@0.1.2","_shasum":"43fc2a6f9c46693e3c3823a352075d25b118e69e","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"43fc2a6f9c46693e3c3823a352075d25b118e69e","size":4061,"noattachment":false,"key":"/cache-point/-/cache-point-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/cache-point/download/cache-point-0.1.2.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/cache-point-0.1.2.tgz_1469398179521_0.8214538786560297"},"directories":{},"publish_time":1469398181708,"_cnpm_publish_time":1469398181708,"_hasShrinkwrap":false},"0.1.1":{"name":"cache-point","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.1.1","description":"cache-point","repository":{"type":"git","url":"git+https://github.com/75lb/cache-point.git"},"license":"MIT","main":"index","keywords":[],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo","es5":"babel --presets babel-preset-es2015 --no-comments lib --out-dir es5"},"devDependencies":{"tape":"^4.6.0"},"dependencies":{"array-back":"^1.0.3","babel-preset-es2015":"^6.9.0","core-js":"^2.4.1","feature-detect-es6":"^1.3.1"},"gitHead":"badd632c6b8955a444ffd1039a0ff43bfaf55b55","bugs":{"url":"https://github.com/75lb/cache-point/issues"},"homepage":"https://github.com/75lb/cache-point#readme","_id":"cache-point@0.1.1","_shasum":"aea5849a2c7fb4a2b6de6ba57d26618154e56863","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"aea5849a2c7fb4a2b6de6ba57d26618154e56863","size":4039,"noattachment":false,"key":"/cache-point/-/cache-point-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/cache-point/download/cache-point-0.1.1.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/cache-point-0.1.1.tgz_1469394239641_0.7086953981779516"},"directories":{},"publish_time":1469394241567,"_cnpm_publish_time":1469394241567,"_hasShrinkwrap":false},"0.1.0":{"name":"cache-point","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.1.0","description":"cache-point","repository":{"type":"git","url":"git+https://github.com/75lb/cache-point.git"},"license":"MIT","main":"index","keywords":[],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo","es5":"babel --presets babel-preset-es2015 --no-comments lib --out-dir es5"},"devDependencies":{"tape":"^4.6.0"},"dependencies":{"array-back":"^1.0.3","babel-preset-es2015":"^6.9.0","feature-detect-es6":"^1.3.1","then-fs":"^2.0.0"},"gitHead":"930387102c80a865fdd455af8ea4de6ebfcad435","bugs":{"url":"https://github.com/75lb/cache-point/issues"},"homepage":"https://github.com/75lb/cache-point#readme","_id":"cache-point@0.1.0","_shasum":"80b03837e6486ca6e947d0ff6815f289146c12e8","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"80b03837e6486ca6e947d0ff6815f289146c12e8","size":3503,"noattachment":false,"key":"/cache-point/-/cache-point-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/cache-point/download/cache-point-0.1.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/cache-point-0.1.0.tgz_1469384990279_0.6737220927607268"},"directories":{},"publish_time":1469384992485,"_cnpm_publish_time":1469384992485,"_hasShrinkwrap":false}},"readme":"[![view on npm](https://badgen.net/npm/v/cache-point)](https://www.npmjs.org/package/cache-point)\n[![npm module downloads](https://badgen.net/npm/dt/cache-point)](https://www.npmjs.org/package/cache-point)\n[![Gihub repo dependents](https://badgen.net/github/dependents-repo/75lb/cache-point)](https://github.com/75lb/cache-point/network/dependents?dependent_type=REPOSITORY)\n[![Gihub package dependents](https://badgen.net/github/dependents-pkg/75lb/cache-point)](https://github.com/75lb/cache-point/network/dependents?dependent_type=PACKAGE)\n[![Node.js CI](https://github.com/75lb/cache-point/actions/workflows/node.js.yml/badge.svg)](https://github.com/75lb/cache-point/actions/workflows/node.js.yml)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard)\n\n# cache-point\n\nSimple, filesystem-backed memoisation cache. Use to cache the output of expensive operations speeding up future invocations with the same input.\n\n## Synopsis\n\n```js\nimport Cache from 'cache-point'\nimport { setTimeout as sleep } from 'node:timers/promises'\n\n/* mock function to simulate a slow, remote request */\nasync function fetchUser (id) {\n  await sleep(1000)\n  return { id, name: 'Layla' }\n}\n\nclass Users {\n  constructor () {\n    this.cache = new Cache({ dir: 'tmp/example' })\n  }\n\n  async getUser (id) {\n    let user\n    try {\n      /* cache.read() will resolve on hit, reject on miss */\n      user = await this.cache.read(id)\n    } catch (err) {\n      if (err.code === 'ENOENT') {\n        /* cache miss, fetch remote user */\n        user = await fetchUser(id)\n        this.cache.write(id, user)\n      }\n    }\n    return user\n  }\n}\n\nconsole.time('getUser')\nconst users = new Users()\nconst user = await users.getUser(10)\nconsole.timeEnd('getUser')\nconsole.log(user)\n```\n\nThe first invocation will take 1 second while the remote user is fetched.\n\n```\n$ node example/simple.js\ngetUser: 1.025s\n{ id: 10, name: 'Layla' }\n```\n\nSince the cache is now warm, future invocations will be fast.\n\n```\n$ node example/simple.js\ngetUser: 17.07ms\n{ id: 10, name: 'Layla' }\n```\n\n## API Reference\n\n<a name=\"module_cache-point\"></a>\n\n## cache-point\n\n* [cache-point](#module_cache-point)\n    * [Cache](#exp_module_cache-point--Cache) ⏏\n        * [new Cache([options])](#new_module_cache-point--Cache_new)\n        * [.dir](#module_cache-point--Cache+dir) : <code>string</code>\n        * [.read(keys)](#module_cache-point--Cache+read) ⇒ <code>Promise</code>\n        * [.readSync(keys)](#module_cache-point--Cache+readSync) ⇒ <code>string</code>\n        * [.write(keys, content)](#module_cache-point--Cache+write) ⇒ <code>Promise</code>\n        * [.writeSync(keys, content)](#module_cache-point--Cache+writeSync)\n        * [.getChecksum(keys)](#module_cache-point--Cache+getChecksum) ⇒ <code>string</code>\n        * [.clear()](#module_cache-point--Cache+clear) ⇒ <code>Promise</code>\n        * [.remove()](#module_cache-point--Cache+remove) ⇒ <code>Promise</code>\n\n<a name=\"exp_module_cache-point--Cache\"></a>\n\n### Cache ⏏\n**Kind**: Exported class  \n<a name=\"new_module_cache-point--Cache_new\"></a>\n\n#### new Cache([options])\n\n| Param | Type |\n| --- | --- |\n| [options] | <code>object</code> | \n| [options.dir] | <code>string</code> | \n\n<a name=\"module_cache-point--Cache+dir\"></a>\n\n#### cache.dir : <code>string</code>\nCurrent cache directory. Can be changed at any time.\n\n**Kind**: instance property of [<code>Cache</code>](#exp_module_cache-point--Cache)  \n<a name=\"module_cache-point--Cache+read\"></a>\n\n#### cache.read(keys) ⇒ <code>Promise</code>\nA cache hit resolves with the stored value, a miss rejects with an `ENOENT` error code.\n\n**Kind**: instance method of [<code>Cache</code>](#exp_module_cache-point--Cache)  \n**Throws**:\n\n- ENOENT\n\n\n| Param | Type | Description |\n| --- | --- | --- |\n| keys | <code>\\*</code> | One or more values to uniquely identify the data. Can be any value, or an array of values of any type. |\n\n<a name=\"module_cache-point--Cache+readSync\"></a>\n\n#### cache.readSync(keys) ⇒ <code>string</code>\nA cache hit returns the stored value, a miss returns `null`.\n\n**Kind**: instance method of [<code>Cache</code>](#exp_module_cache-point--Cache)  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| keys | <code>\\*</code> | One or more values to uniquely identify the data. Can be any value, or an array of values of any type. |\n\n<a name=\"module_cache-point--Cache+write\"></a>\n\n#### cache.write(keys, content) ⇒ <code>Promise</code>\nWrite some data to the cache. Returns a promise which resolves when the write is complete.\n\n**Kind**: instance method of [<code>Cache</code>](#exp_module_cache-point--Cache)  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| keys | <code>\\*</code> | One or more values to index the data, e.g. a request object or set of function args. |\n| content | <code>\\*</code> | the data to store |\n\n<a name=\"module_cache-point--Cache+writeSync\"></a>\n\n#### cache.writeSync(keys, content)\nWrite some data to the cache with a key.\n\n**Kind**: instance method of [<code>Cache</code>](#exp_module_cache-point--Cache)  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| keys | <code>\\*</code> | One or more values to index the data, e.g. a request object or set of function args. |\n| content | <code>\\*</code> | the data to store |\n\n<a name=\"module_cache-point--Cache+getChecksum\"></a>\n\n#### cache.getChecksum(keys) ⇒ <code>string</code>\nUsed internally to convert a key value into a hex checksum. Override if for some reason you need a different hashing strategy.\n\n**Kind**: instance method of [<code>Cache</code>](#exp_module_cache-point--Cache)  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| keys | <code>\\*</code> | One or more values to index the data, e.g. a request object or set of function args. |\n\n<a name=\"module_cache-point--Cache+clear\"></a>\n\n#### cache.clear() ⇒ <code>Promise</code>\nClears the cache. Returns a promise which resolves once the cache is clear.\n\n**Kind**: instance method of [<code>Cache</code>](#exp_module_cache-point--Cache)  \n<a name=\"module_cache-point--Cache+remove\"></a>\n\n#### cache.remove() ⇒ <code>Promise</code>\nClears and removes the cache directory. Returns a promise which resolves once the remove is complete.\n\n**Kind**: instance method of [<code>Cache</code>](#exp_module_cache-point--Cache)  \n\n* * *\n\n&copy; 2016-25 Lloyd Brookes \\<opensource@75lb.com\\>.\n\nTested by [test-runner](https://github.com/test-runner-js/test-runner). Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown).\n","_attachments":{},"homepage":"https://github.com/75lb/cache-point#readme","bugs":{"url":"https://github.com/75lb/cache-point/issues"},"license":"MIT"}