{"_id":"cacha","_rev":"10-71510df3658a44ba093e69b483fd9eee","name":"cacha","description":"My hunky-dory module","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"cacha","version":"1.0.0","description":"My hunky-dory module","license":"MIT","repository":{"type":"git","url":"https://github.com/floatdrop/cacha"},"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com","url":"github.com/floatdrop"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":[],"dependencies":{"home-or-tmp":"^2.0.0","mkdirp":"^0.5.1","pinkie-promise":"^1.0.0"},"devDependencies":{"ava":"^0.4.0","mock-fs":"^3.4.0","xo":"^0.10.0"},"xo":{"ignores":["test.js"]},"gitHead":"c97cdb4c6b472e5703a86669d680c1e67c1e06dc","bugs":{"url":"https://github.com/floatdrop/cacha/issues"},"homepage":"https://github.com/floatdrop/cacha","_id":"cacha@1.0.0","_shasum":"ecd0814e0586d43280cd08a398ab3b4233a913c0","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.0","_npmUser":{"name":"floatdrop","email":"floatdrop@gmail.com"},"dist":{"shasum":"ecd0814e0586d43280cd08a398ab3b4233a913c0","tarball":"https://registry.npmjs.org/cacha/-/cacha-1.0.0.tgz","integrity":"sha512-RyoHF8ESmXqA14mi/PDfEou5jGBrLC/AtwIKmvVzG9HyxyoOtSp99KCJtnNuaX5SM0P0dQLMpdxqLjJLMDKg3w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH1K1GOMhdxAnEOqEupHuc3wCnzClqH3AVDkh21QzeAZAiAGhGBLjq2xhhjee80QxWtOwF3A9puADn2CDD+6NHdi7g=="}]},"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}]},"1.0.1":{"name":"cacha","version":"1.0.1","description":"My hunky-dory module","license":"MIT","repository":{"type":"git","url":"https://github.com/floatdrop/cacha"},"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com","url":"github.com/floatdrop"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":[],"dependencies":{"home-or-tmp":"^2.0.0","mkdirp":"^0.5.1","pify":"^2.3.0","pinkie-promise":"^1.0.0"},"devDependencies":{"ava":"^0.4.0","mock-fs":"^3.4.0","xo":"^0.10.0"},"xo":{"ignores":["test.js"]},"gitHead":"b4752e2e8ccfb504f2c54cac75d8e72bba3994b3","bugs":{"url":"https://github.com/floatdrop/cacha/issues"},"homepage":"https://github.com/floatdrop/cacha","_id":"cacha@1.0.1","_shasum":"5f22c989ab236d90c2abb6de5a048a10ce6defc6","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.0","_npmUser":{"name":"floatdrop","email":"floatdrop@gmail.com"},"dist":{"shasum":"5f22c989ab236d90c2abb6de5a048a10ce6defc6","tarball":"https://registry.npmjs.org/cacha/-/cacha-1.0.1.tgz","integrity":"sha512-W+RWLY9pkbjdP3ngagJ/oW1ytAxicidBC1ASOvpRzcY8nJNZX0jMJeeRzNTQBJCRpQdbUFXuR/e/ciK7/svrKA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIApLITMuOhAop0TQaGVOWMuWDDUG4cLN3neiOl7aJTYEAiEA+zYH1WQuM5t02C+vig2MQfDOmxv6Vl52TO+PUnpy5I4="}]},"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}]},"1.0.2":{"name":"cacha","version":"1.0.2","description":"My hunky-dory module","license":"MIT","repository":{"type":"git","url":"https://github.com/floatdrop/cacha"},"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com","url":"github.com/floatdrop"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":[],"dependencies":{"home-or-tmp":"^2.0.0","mkdirp":"^0.5.1","pify":"^2.3.0","pinkie-promise":"^2.0.0"},"devDependencies":{"ava":"^0.4.0","mock-fs":"^3.4.0","xo":"^0.10.0"},"xo":{"ignores":["test.js"]},"gitHead":"42d62dce2cd51aa0244625477eb982048bf003e5","bugs":{"url":"https://github.com/floatdrop/cacha/issues"},"homepage":"https://github.com/floatdrop/cacha","_id":"cacha@1.0.2","_shasum":"6cebb1185a618f3e03d9e580e0ec7f3ec3c07332","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.0","_npmUser":{"name":"floatdrop","email":"floatdrop@gmail.com"},"dist":{"shasum":"6cebb1185a618f3e03d9e580e0ec7f3ec3c07332","tarball":"https://registry.npmjs.org/cacha/-/cacha-1.0.2.tgz","integrity":"sha512-ug4RaPq2XLQBvwSeTyHYf3s+kSCJHFu1ppM2Fa+pZ6oNu/zN05MruG8nTfSvK7OmoCthxMt/dQzOSpoN6RAurg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDZzphwESXK7xZzQH3G+qbwun6ezI6WPU2umr1CA98ARAiB0RsgYwGKoTZGPxOpuei4ncOsGJI+8kvorF1Li8yZRhQ=="}]},"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}]},"1.0.3":{"name":"cacha","version":"1.0.3","description":"My hunky-dory module","license":"MIT","repository":{"type":"git","url":"https://github.com/floatdrop/cacha"},"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com","url":"github.com/floatdrop"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":[],"dependencies":{"home-or-tmp":"^2.0.0","mkdirp":"^0.5.1","path-is-absolute":"^1.0.0","pify":"^2.3.0","pinkie-promise":"^2.0.0"},"devDependencies":{"ava":"^0.4.0","mock-fs":"^3.4.0","xo":"^0.10.0"},"xo":{"ignores":["test.js"]},"gitHead":"3c7b0102c479b6ec9f13ab508c2afa4c85d134b4","bugs":{"url":"https://github.com/floatdrop/cacha/issues"},"homepage":"https://github.com/floatdrop/cacha","_id":"cacha@1.0.3","_shasum":"e0671846b00acee2b3b46a4208a536150238491e","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.0","_npmUser":{"name":"floatdrop","email":"floatdrop@gmail.com"},"dist":{"shasum":"e0671846b00acee2b3b46a4208a536150238491e","tarball":"https://registry.npmjs.org/cacha/-/cacha-1.0.3.tgz","integrity":"sha512-oSJ8kf74sLE0BI/h1OA+W4nuUr1hAylVHx28/huLn1MattwUBzHua0Sm+C3UtueWinn8UTQ0fmWoQ1uniEyntw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICbwS5dT8fWTFhajpeycrodn0tqxQtRXGAnB4Pcdc3FLAiAY9SPS/YcwG+38ko3Vb23UWsfe375SgzU9g6nP7Hl4fQ=="}]},"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}]}},"readme":"# cacha [![Build Status](https://travis-ci.org/floatdrop/cacha.svg?branch=master)](https://travis-ci.org/floatdrop/cacha)\n\n> Cache on file-system\n\n\n## Install\n\n```\n$ npm install --save cacha\n```\n\n\n## Usage\n\n```js\nconst Cache = require('cacha');\nconst cache = new Cacha('.my/cache');\n\ncache.set('id', 'content');\n//=> Promise\n\ncache.get('id');\n//=> Promise with 'content'\n```\n\n\n## API\n\n### cacha(namespace, [options])\n\n#### namespace\n\nType: `string`\n\nDirectory in HOME or TMP directory of current user.\n\nIf namespace begins with `/` it will be interpreted as absolute path.\n\n#### options\n\n##### ttl\n\nType: `Number`  \nDefault: `86400000`\n\nHow long (in milliseconds) keep entries in cache.\n\n\n### cache.get(id, [options])\n\n### cache.getSync(id, [options])\n\n### cache.set(id, content, [options])\n\n### cache.setSync(id, content, [options])\n\nGet and set methods for cache entries. `options` are passed to `fs` write and read methods (for example to specify encoding).\n\n### cache.clean()\n\nRemoves outdated entries in cache.\n\n## License\n\nMIT © [Vsevolod Strukchinsky](http://github.com/floatdrop)\n","maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}],"time":{"modified":"2022-06-13T05:23:04.833Z","created":"2015-11-11T09:07:38.794Z","1.0.0":"2015-11-11T09:07:38.794Z","1.0.1":"2015-11-11T10:04:50.042Z","1.0.2":"2015-11-15T07:44:51.760Z","1.0.3":"2015-11-15T07:53:27.370Z"},"homepage":"https://github.com/floatdrop/cacha","keywords":[],"repository":{"type":"git","url":"https://github.com/floatdrop/cacha"},"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com","url":"github.com/floatdrop"},"bugs":{"url":"https://github.com/floatdrop/cacha/issues"},"license":"MIT","readmeFilename":"readme.md"}