{"_id":"cacheman","_rev":"45-d4e0de1cfa78d196cf4f929af9e6025f","name":"cacheman","description":"Small and efficient cache provider for Node.JS with In-memory, Redis and MongoDB engines","dist-tags":{"latest":"2.2.1"},"versions":{"0.1.0":{"name":"cacheman","version":"0.1.0","description":"Small and efficient cache provider for Node.JS with In-memory, Redis and MongoDB engines","author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/cayasso/cacheman.git"},"keywords":["cache","redis","memory","mongodb","caching","mongo","store","ttl"],"license":"MIT","devDependencies":{"mocha":"~1.12.0","cacheman-redis":"0.1.x","cacheman-mongo":"0.1.x"},"dependencies":{"cacheman-memory":"0.1.x"},"bugs":{"url":"https://github.com/cayasso/cacheman/issues"},"_id":"cacheman@0.1.0","dist":{"shasum":"47c9d24cd5cd5794236bc7e3247c5c43457e70dc","tarball":"https://registry.npmjs.org/cacheman/-/cacheman-0.1.0.tgz","integrity":"sha512-xamLs0JzHNZTzkJHnAf/fKSGnquztk5IUfNGZXOaP8XpJgTKRPVIIYCyFJtRy4z/s5D6Wn1XZsVPAs0PJ/v5vQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD5ntCo/mM51g72l5tDnP3MngYYG9e8rbZaX3gMHbMVhgIgEJlHPGWClsBf8iVqhJARA+kyrufga3hKTcOwBiYywME="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"cayasso","email":"cayasso@gmail.com"},"maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"}],"directories":{}},"0.1.1":{"name":"cacheman","version":"0.1.1","description":"Small and efficient cache provider for Node.JS with In-memory, Redis and MongoDB engines","author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/cayasso/cacheman.git"},"keywords":["cache","redis","memory","mongodb","caching","mongo","store","ttl"],"license":"MIT","devDependencies":{"mocha":"~1.12.0","cacheman-redis":"~0.1.x","cacheman-mongo":"~0.1.x"},"dependencies":{"cacheman-memory":"~0.1.x","ms":"~0.6.1"},"bugs":{"url":"https://github.com/cayasso/cacheman/issues"},"_id":"cacheman@0.1.1","dist":{"shasum":"4e1d6230a5927a3619b774ce5abf0c4dc4c47a52","tarball":"https://registry.npmjs.org/cacheman/-/cacheman-0.1.1.tgz","integrity":"sha512-ZHvcbhpr9iaJM7SudqBk9bBBfRblJW0b1I5bcTCvl7yhpgHJGfWoB9CVHjWUdtm/xWRtOJIllEc1KZC7nx/E0Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBiUVWN7Q4CRYpZGI13YKXZWhxnLJMl9g1IZSJpwIpFGAiEAmHG9cREpsD+QG9dISe6qvB+07pXvy0pDB7FUmADPx9Y="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"cayasso","email":"cayasso@gmail.com"},"maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"}],"directories":{}},"1.0.0":{"name":"cacheman","version":"1.0.0","description":"Small and efficient cache provider for Node.JS with In-memory, Redis and MongoDB engines","author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/cayasso/cacheman.git"},"keywords":["cache","redis","memory","mongodb","caching","mongo","store","ttl","middleware"],"license":"MIT","devDependencies":{"mocha":"~1.12.0","cacheman-redis":"~0.1.x","cacheman-mongo":"~0.1.x"},"dependencies":{"cacheman-memory":"~0.1.x","ms":"~0.6.1"},"bugs":{"url":"https://github.com/cayasso/cacheman/issues"},"_id":"cacheman@1.0.0","dist":{"shasum":"2acf7cc454ebfa607d9715c2e5b86ecc026aaecd","tarball":"https://registry.npmjs.org/cacheman/-/cacheman-1.0.0.tgz","integrity":"sha512-u1jyS9/k2T/R4hQGblBqzpLQYpn3MuG+p1LK9gkykBRCihM2h8VynejonKC2ROBckXZSh2SPj51IsgTusvBNKQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEFuiALQ8yK6RnLdeAmS9bryuMb/teyFxlKLY8KOYjY7AiBnUCfkkIfl4+NxFJ5ynu58v3qWnT6xxRmxARXYHNtzHg=="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"cayasso","email":"cayasso@gmail.com"},"maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"}],"directories":{}},"1.0.1":{"name":"cacheman","version":"1.0.1","description":"Small and efficient cache provider for Node.JS with In-memory, Redis and MongoDB engines","author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/cayasso/cacheman.git"},"keywords":["cache","redis","memory","mongodb","caching","mongo","store","ttl","middleware"],"license":"MIT","devDependencies":{"mocha":"~1.12.0","cacheman-redis":"~0.1.x","cacheman-mongo":"~0.1.x"},"dependencies":{"cacheman-memory":"~0.1.x","ms":"~0.6.1"},"bugs":{"url":"https://github.com/cayasso/cacheman/issues"},"_id":"cacheman@1.0.1","dist":{"shasum":"9c9dc62d7aea66ee02fb24010e1c82041283b45a","tarball":"https://registry.npmjs.org/cacheman/-/cacheman-1.0.1.tgz","integrity":"sha512-ou6J6n8m/bYP/I5xKgno4Sf7z1Ok3KqRDcCzkgvpdCNZyrNwD54Wb1dXxSv5CktuRLoL1cZm8WxodjM/Ia7mxw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC0cuBWWG/MCHnQGTV7goK4QB5kCbUMizOLSgG4EiRAiwIgJ37QQSDV+YfuVHTLmyLudXbQLVqKeNkdIJTDaAAtjHI="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"cayasso","email":"cayasso@gmail.com"},"maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"}]},"1.0.2":{"name":"cacheman","version":"1.0.2","description":"Small and efficient cache provider for Node.JS with In-memory, Redis and MongoDB engines","author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/cayasso/cacheman.git"},"keywords":["cache","file","redis","memory","mongodb","caching","mongo","store","ttl","middleware"],"license":"MIT","devDependencies":{"mocha":"~1.12.0","cacheman-redis":"~0.1.x","cacheman-mongo":"~0.1.x","cacheman-file":"latest"},"dependencies":{"cacheman-memory":"~0.1.x","ms":"~0.6.1"},"bugs":{"url":"https://github.com/cayasso/cacheman/issues"},"homepage":"https://github.com/cayasso/cacheman","_id":"cacheman@1.0.2","dist":{"shasum":"c51d6795a2ac851340d3ff02eed780d57fb4d85e","tarball":"https://registry.npmjs.org/cacheman/-/cacheman-1.0.2.tgz","integrity":"sha512-Wx6P2l0Nboofvl4Rnnnw6TThenJcJrTgfs8lw45Dcppw3l+WZoL04fkamLI/UM/f1ndyuro0Ln0rURc0M6G6mQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAvkKnWuE01uJkJD4QiaVu6x46md8ipBIlIn3oSGgv08AiEAop7U7Zn6kqmVWtYEXZPENxWulExASh14vROoN8dp7Pk="}]},"_from":".","_npmVersion":"1.3.26","_npmUser":{"name":"cayasso","email":"cayasso@gmail.com"},"maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"}]},"1.0.3":{"name":"cacheman","version":"1.0.3","description":"Small and efficient cache provider for Node.JS with In-memory, Redis and MongoDB engines","author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/cayasso/cacheman.git"},"keywords":["cache","file","redis","memory","mongodb","caching","mongo","store","ttl","middleware"],"license":"MIT","devDependencies":{"mocha":"~1.12.0","cacheman-redis":"~0.1.x","cacheman-mongo":"~0.1.x","cacheman-file":"latest"},"dependencies":{"cacheman-memory":"~0.1.x","ms":"~0.6.1"},"gitHead":"682c343f0a0d58ff0ec49dcc776c79f3a6405bab","bugs":{"url":"https://github.com/cayasso/cacheman/issues"},"homepage":"https://github.com/cayasso/cacheman","_id":"cacheman@1.0.3","_shasum":"911b2347310e3836d463ca106c6e3f74788eba65","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"cayasso","email":"cayasso@gmail.com"},"maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"}],"dist":{"shasum":"911b2347310e3836d463ca106c6e3f74788eba65","tarball":"https://registry.npmjs.org/cacheman/-/cacheman-1.0.3.tgz","integrity":"sha512-459X5MkGSNSrhlDzvJSDgX+eTl2Ja1Dc4UdC/wIsi94jwbjo8PlSiMNi2IUPmRlCgoOZFOWusD4ED2JacKuYlw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxn8qULb0I2N90to/61UqBkLwqqQJR3sRnAb5EzNyZQwIgOQW+rCgHUMChHybUZZDNm5GBbUo0NUWzMjMV37lPXYM="}]}},"1.0.4":{"name":"cacheman","version":"1.0.4","description":"Small and efficient cache provider for Node.JS with In-memory, Redis and MongoDB engines","author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/cayasso/cacheman.git"},"keywords":["cache","file","redis","memory","mongodb","caching","mongo","store","ttl","middleware","bucket"],"license":"MIT","devDependencies":{"cacheman-file":"latest","cacheman-mongo":"~0.1.x","cacheman-redis":"~0.1.x","mocha":"~1.12.0","pre-commit":"^1.0.2"},"dependencies":{"cacheman-memory":"~0.1.x","ms":"^0.6.2"},"gitHead":"1c4e2f251261b1823113f7c8391b2c663d903c33","bugs":{"url":"https://github.com/cayasso/cacheman/issues"},"homepage":"https://github.com/cayasso/cacheman","_id":"cacheman@1.0.4","_shasum":"e426ddc17284007ffbfdeafd274bcdd4f67491e6","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"cayasso","email":"cayasso@gmail.com"},"maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"}],"dist":{"shasum":"e426ddc17284007ffbfdeafd274bcdd4f67491e6","tarball":"https://registry.npmjs.org/cacheman/-/cacheman-1.0.4.tgz","integrity":"sha512-SQC7HtpGcFpQpLviAfBOydGmwwnOgL6kKMNAFEDRFNb6b+4IoL3UVe3P/FWIv4YEjXORiDmBOT8ZUHJdWmO7SQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFN268GrE+6jDHcop1vl51KZR/fHjh19SFsU1Le3/uTTAiEAl55xFKacgB6DSCIHyxTcHC+z9eNx5CReMT8xo8cZCxM="}]}},"1.1.0":{"name":"cacheman","version":"1.1.0","description":"Small and efficient cache provider for Node.JS with In-memory, Redis and MongoDB engines","author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/cayasso/cacheman.git"},"keywords":["cache","file","redis","memory","mongodb","caching","mongo","store","ttl","middleware","bucket"],"license":"MIT","devDependencies":{"cacheman-file":"latest","cacheman-mongo":"^0.2.1","cacheman-redis":"^0.2.0","mocha":"~1.12.0","pre-commit":"^1.0.2"},"dependencies":{"cacheman-memory":"~0.1.x","ms":"^0.6.2"},"gitHead":"b386f9ac0f79239a6fd7deeadb3bf22347968620","bugs":{"url":"https://github.com/cayasso/cacheman/issues"},"homepage":"https://github.com/cayasso/cacheman","_id":"cacheman@1.1.0","_shasum":"a8a52ecfb749b5dacab8beb181dadf0098e7b41e","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"cayasso","email":"cayasso@gmail.com"},"maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"}],"dist":{"shasum":"a8a52ecfb749b5dacab8beb181dadf0098e7b41e","tarball":"https://registry.npmjs.org/cacheman/-/cacheman-1.1.0.tgz","integrity":"sha512-a9+QlAp1O7Yi30Vh+g/O/iBGw/zlALxU8DyoJVWfTZV8wIWYgN41cP9dnHd6J//LZpElGo8s7DxnIL8VKD/5jA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHzjModiHC0ABcMSl5P4M4t6zbf5J8+0DyJN11IUIbXoAiEAg47T7hAtO7Dp0zn2kgCNA85u/ZG+YLHt1ZlGfrRT9ls="}]}},"1.1.1":{"name":"cacheman","version":"1.1.1","description":"Small and efficient cache provider for Node.JS with In-memory, Redis and MongoDB engines","author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/cayasso/cacheman.git"},"keywords":["cache","file","redis","memory","mongodb","caching","mongo","store","ttl","middleware","bucket"],"license":"MIT","devDependencies":{"cacheman-file":"latest","cacheman-mongo":"^0.2.1","cacheman-redis":"^0.2.0","mocha":"~1.12.0","pre-commit":"^1.0.2"},"dependencies":{"cacheman-memory":"~0.1.x","ms":"^0.6.2"},"gitHead":"8cc89695e6be600abbae3d2fcfa480a86cc81050","bugs":{"url":"https://github.com/cayasso/cacheman/issues"},"homepage":"https://github.com/cayasso/cacheman#readme","_id":"cacheman@1.1.1","_shasum":"0af9eafef5e8131e53f0ecf5d6ce2bbb12254153","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.6","_npmUser":{"name":"cayasso","email":"cayasso@gmail.com"},"maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"}],"dist":{"shasum":"0af9eafef5e8131e53f0ecf5d6ce2bbb12254153","tarball":"https://registry.npmjs.org/cacheman/-/cacheman-1.1.1.tgz","integrity":"sha512-2m7DmOwAbRGIxU6lvdA9ypuwOAYy6B1sANnvEBa3oQuAEYpdFscTZoZ5YXz7CAuBPHXdHJx1UkKIkwVWYMRWSA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDeUhh98VNAD81GgDpw5cb0u5O5YHTmxn9phioMNXgzUAIga3B1qe2yhg35pwwPqZqj76NHyvb9QjtqS6qk2oItynY="}]}},"2.0.0":{"name":"cacheman","version":"2.0.0","description":"Small and efficient cache provider for Node.JS with In-memory, Redis and MongoDB engines","author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"main":"./node/index","scripts":{"test":"make test","postinstall":"make"},"repository":{"type":"git","url":"git://github.com/cayasso/cacheman.git"},"keywords":["cache","file","redis","memory","mongodb","caching","mongo","store","ttl","middleware","bucket"],"license":"MIT","devDependencies":{"mocha":"~2.3.3","pre-commit":"^1.1.1"},"dependencies":{"babel":"^5.8.23","cacheman-memory":"~0.1.x","ms":"^0.7.1"},"gitHead":"e5f8c83e848daf59aa6082eb9ce0cbb0ade3123a","bugs":{"url":"https://github.com/cayasso/cacheman/issues"},"homepage":"https://github.com/cayasso/cacheman#readme","_id":"cacheman@2.0.0","_shasum":"72629d8f399731c912c7b54f14f5411a328488fa","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"cayasso","email":"cayasso@gmail.com"},"maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"}],"dist":{"shasum":"72629d8f399731c912c7b54f14f5411a328488fa","tarball":"https://registry.npmjs.org/cacheman/-/cacheman-2.0.0.tgz","integrity":"sha512-+cBK/txA/Rqa98E2nAMVTIadIgpR9HuKwZIO6IZs3E4KF8VqRM/G6b5uY+1yqwDCvsrbyjdAW6brBIG1wR06rw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDG7IDirdCGnVH2kO5J1kh52Q+YFGH7lj+hJVgU+QLb5wIhAI5263ai3ZqKS8q4NttGqJnH51HoHn9RJmh2I6KlqB5V"}]}},"2.0.1":{"name":"cacheman","version":"2.0.1","description":"Small and efficient cache provider for Node.JS with In-memory, Redis and MongoDB engines","author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"main":"./node/index","scripts":{"test":"make test","prepublish":"make"},"repository":{"type":"git","url":"git://github.com/cayasso/cacheman.git"},"keywords":["cache","file","redis","memory","mongodb","caching","mongo","store","ttl","middleware","bucket"],"license":"MIT","devDependencies":{"mocha":"~2.3.3","pre-commit":"^1.1.1"},"dependencies":{"babel":"^5.8.23","cacheman-memory":"~0.1.x","ms":"^0.7.1"},"gitHead":"735599cfa305e4646243507e6838ddce669eba17","bugs":{"url":"https://github.com/cayasso/cacheman/issues"},"homepage":"https://github.com/cayasso/cacheman#readme","_id":"cacheman@2.0.1","_shasum":"3a3ec341638d49309b1818fea1d1d80586c84452","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.0","_npmUser":{"name":"cayasso","email":"cayasso@gmail.com"},"maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"}],"dist":{"shasum":"3a3ec341638d49309b1818fea1d1d80586c84452","tarball":"https://registry.npmjs.org/cacheman/-/cacheman-2.0.1.tgz","integrity":"sha512-wWrwHhZjgiG1VZEV6Dl0V74xekI31ZXvzH2AAziz/dyK0QXgNAyx17jvwJ3X9OIUxXVwHbeh+0W8Lk0LyLdAeA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGiJW2527yYTe8XKOIKr6MzJm9Jn1/QObFDb9A4K0gmbAiEA9jyMpzm0uxNJgNDbjr/JISybL+iw2klTkUMNAstB4rY="}]}},"2.0.3":{"name":"cacheman","version":"2.0.3","description":"Small and efficient cache provider for Node.JS with In-memory, Redis and MongoDB engines","author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"main":"./node/index","scripts":{"test":"make test","prepublish":"make"},"repository":{"type":"git","url":"git://github.com/cayasso/cacheman.git"},"keywords":["cache","file","redis","memory","mongodb","caching","mongo","store","ttl","middleware","bucket"],"license":"MIT","devDependencies":{"babel":"^5.8.29","mocha":"~2.3.3","pre-commit":"^1.1.2"},"dependencies":{"cacheman-memory":"~1.0.x","ms":"^0.7.1"},"gitHead":"3bd0ac43f308aa75281ef5c13be11acd52601bd2","bugs":{"url":"https://github.com/cayasso/cacheman/issues"},"homepage":"https://github.com/cayasso/cacheman#readme","_id":"cacheman@2.0.3","_shasum":"98cdb0ca2577d705f49ab8458dbebae8bc2cb33c","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"cayasso","email":"cayasso@gmail.com"},"maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"}],"dist":{"shasum":"98cdb0ca2577d705f49ab8458dbebae8bc2cb33c","tarball":"https://registry.npmjs.org/cacheman/-/cacheman-2.0.3.tgz","integrity":"sha512-rUiuM2M2SqbmhVSEoD5U0pjD1x1LaMwvt0+RGrTyYmWvEJFPIVZ5IsDXV/v2soYWvTrXYtc6XJCzyGKWIJsSkA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHRJrzaXkbaC0di6n7swrYZZUOgI439JPI5tbZOAdmLOAiEAkRjF/PAQ1ggprJZvrHiJ+uPcqOThuGqMBQTIxutHzuw="}]}},"2.0.4":{"name":"cacheman","version":"2.0.4","description":"Small and efficient cache provider for Node.JS with In-memory, Redis and MongoDB engines","author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"main":"./node/index","scripts":{"test":"make test","prepublish":"make"},"repository":{"type":"git","url":"git://github.com/cayasso/cacheman.git"},"keywords":["cache","file","redis","memory","mongodb","caching","mongo","store","ttl","middleware","bucket"],"license":"MIT","devDependencies":{"babel":"^5.8.29","mocha":"*","pre-commit":"^1.1.2"},"dependencies":{"cacheman-memory":"^1.0.2","ms":"^0.7.1"},"gitHead":"db8a8db8ab1f930886e2db03b458b78b3434df6c","bugs":{"url":"https://github.com/cayasso/cacheman/issues"},"homepage":"https://github.com/cayasso/cacheman#readme","_id":"cacheman@2.0.4","_shasum":"5e06504d2d08f2298a394267192b57a499b36aff","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"cayasso","email":"cayasso@gmail.com"},"maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"}],"dist":{"shasum":"5e06504d2d08f2298a394267192b57a499b36aff","tarball":"https://registry.npmjs.org/cacheman/-/cacheman-2.0.4.tgz","integrity":"sha512-42zgtW6Q+APLjAGftTMouKhoivJCyFW8V3vRy8PZ8+uC8KSInAxOQF8eLz05r0KROENGj6Mep+Ukx/1TtCtmBQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDv1ZTHeQtQLjQ0ATEUShstwT1mYlBiaOTaoLDzH6zACwIhAN/riF1cUbpX6bHSKqyYuWdlEVZoRbp1Ptr9rR8WuF8A"}]}},"2.0.5":{"name":"cacheman","version":"2.0.5","description":"Small and efficient cache provider for Node.JS with In-memory, Redis and MongoDB engines","author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"main":"./node/index","scripts":{"test":"make test","prepublish":"make"},"repository":{"type":"git","url":"git://github.com/cayasso/cacheman.git"},"keywords":["cache","file","redis","memory","mongodb","caching","mongo","store","ttl","middleware","bucket"],"license":"MIT","devDependencies":{"babel":"^5.8.29","mocha":"*","pre-commit":"^1.1.2"},"dependencies":{"cacheman-memory":"^1.0.2","ms":"^0.7.1"},"gitHead":"f48e59a2c1bcfc406066d6bae4e1e5fad1149df7","bugs":{"url":"https://github.com/cayasso/cacheman/issues"},"homepage":"https://github.com/cayasso/cacheman#readme","_id":"cacheman@2.0.5","_shasum":"8176bf58a2f45fbfeea237e89eda0913c0bdabfe","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"cayasso","email":"cayasso@gmail.com"},"maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"}],"dist":{"shasum":"8176bf58a2f45fbfeea237e89eda0913c0bdabfe","tarball":"https://registry.npmjs.org/cacheman/-/cacheman-2.0.5.tgz","integrity":"sha512-1HVDCbolW0/s2HY9y280IqbfgZjX9xR1+jhJkS/Oe5KxkfMcZdXAJFy3UXDCbocl4Lujlws97h6mc7q/S578kQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDoYgjz4K/On/q9DGB+Pam9GkFd+kakvxV2Isk3Yv0oagIhAPe314lzr4AoR0hcpPa5L1Sl/ofA9W949MlA0zV+9Uxp"}]}},"2.1.0":{"name":"cacheman","version":"2.1.0","description":"Small and efficient cache provider for Node.JS with In-memory, Redis and MongoDB engines","author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"main":"./node/index","scripts":{"test":"make test","prepublish":"make"},"repository":{"type":"git","url":"git://github.com/cayasso/cacheman.git"},"keywords":["cache","file","redis","memory","mongodb","caching","mongo","store","ttl","middleware","bucket"],"license":"MIT","devDependencies":{"babel":"^5.8.29","mocha":"*","pre-commit":"^1.1.2"},"dependencies":{"cacheman-memory":"^1.0.2","ms":"^0.7.1"},"gitHead":"9f135b94fe8ca445c4a437409c044b1810222cd2","bugs":{"url":"https://github.com/cayasso/cacheman/issues"},"homepage":"https://github.com/cayasso/cacheman#readme","_id":"cacheman@2.1.0","_shasum":"5272c5e41cbf1d1ff50d90966fd3189b437a2e8f","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"cayasso","email":"cayasso@gmail.com"},"maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"}],"dist":{"shasum":"5272c5e41cbf1d1ff50d90966fd3189b437a2e8f","tarball":"https://registry.npmjs.org/cacheman/-/cacheman-2.1.0.tgz","integrity":"sha512-TnO1zWDjd5eJeeP3xZfrR7FxZa3SBgvD1E/2eaMd9/DS2TUWjYJCO2x5tORKO0KxosPkiqoUHPmgfyv60GOGlQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCp8gWlWtcZVHp7VfQyTHDhaqRkfj+uSKvZbmBn8YE2IAIgRme4p/d2hPK06ZK7cWFp07RYQeTfNwaqiRYjgZ9BTzE="}]}},"2.2.1":{"name":"cacheman","version":"2.2.1","description":"Small and efficient cache provider for Node.JS with In-memory, Redis and MongoDB engines","author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"main":"./node/index","scripts":{"test":"make test","prepublish":"make"},"repository":{"type":"git","url":"git://github.com/cayasso/cacheman.git"},"keywords":["cache","file","redis","memory","mongodb","caching","mongo","store","ttl","middleware","bucket"],"license":"MIT","devDependencies":{"babel-cli":"^6.4.5","babel-core":"^6.4.5","babel-plugin-add-module-exports":"^0.1.2","babel-preset-es2015":"^6.3.13","babel-preset-stage-2":"^6.3.13","bluebird":"^3.1.5","mocha":"^2.4.4","pre-commit":"^1.1.2"},"dependencies":{"cacheman-memory":"^1.0.2","ms":"^0.7.1"},"gitHead":"19a3255c4e71fd1a17ec06140e5563ba60ab63d3","bugs":{"url":"https://github.com/cayasso/cacheman/issues"},"homepage":"https://github.com/cayasso/cacheman#readme","_id":"cacheman@2.2.1","_shasum":"3510c0def12429d61b780128ff18f9d284bb02b8","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"cayasso","email":"cayasso@gmail.com"},"maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"}],"dist":{"shasum":"3510c0def12429d61b780128ff18f9d284bb02b8","tarball":"https://registry.npmjs.org/cacheman/-/cacheman-2.2.1.tgz","integrity":"sha512-Uw6kg1v5PsGkq2FJd+snciIEKl7XOqOtAqCDQxH6ae0p+wZtBkQbpJup9E0Jc0rXtM5leYQB2GRUR4QypqbGMg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA3TyI1IhHhk2Cua6mxy2e/UMtdQsB5ouAFeZQfBttsCAiBBzbmQMwfhzfC7rHmSkyq5StqPX3vAOohJCctB6wD3Tw=="}]}}},"readme":"# cacheman\n\n[![Build Status](https://travis-ci.org/cayasso/cacheman.png?branch=master)](https://travis-ci.org/cayasso/cacheman)\n[![NPM version](https://badge.fury.io/js/cacheman.png)](http://badge.fury.io/js/cacheman)\n\nSmall and efficient cache provider for Node.JS with In-memory, File, Redis and MongoDB engines.\n\n## Installation\n\n``` bash\n$ npm install cacheman\n```\n\n## Usage\n\n```javascript\nvar Cacheman = require('cacheman');\nvar cache = new Cacheman();\n\n// or\nvar cache = new Cacheman('todo');\n\n// or\nvar cache = new Cacheman({ ttl: 90 });\n\n// or\nvar cache = new Cacheman('todo', { ttl: 90 });\n\n// set the value\ncache.set('my key', { foo: 'bar' }, function (error) {\n\n  if (error) throw error;\n\n  // get the value\n  cache.get('my key', function (error, value) {\n\n    if (error) throw error;\n\n    console.log(value); //-> {foo:\"bar\"}\n\n    // delete entry\n    cache.del('my key', function (error){\n\n      if (error) throw error;\n\n      console.log('value deleted');\n    });\n\n  });\n});\n```\n\n## API\n\n### Cacheman([name, [options]])\n\nCreate `cacheman` instance. It accepts an `name`(optional) and  `options`(optional). `options` can contain `ttl` to set the default \"Time To Live\" in seconds, `delimiter` to change the delimiter used for array keys (default: `':'`), `Promise` can set a Promise library to use for promises, `engine` that could be \"memory\", \"in file\", \"redis\" or \"mongo\", and the corresponding engine options that can be passed like `port`, `host`, etc.\n\nYou can also pass an already initialized client `engine` as valid engine so you can re-use among multiple cacheman instances.\n\nBy default `cacheman` uses the `cacheman-memory` engine.\n\n```javascript\nvar options = {\n  ttl: 90,\n  engine: 'redis',\n  port: 9999,\n  host: '127.0.0.1'\n};\n\nvar cache = new Cacheman('todo', options);\n```\n\nReuse engine in multiple cache instances:\n\n```javascript\nvar Cacheman = require('cacheman');\nvar EngineMongo = require('cacheman-mongo');\nvar engine = new Engine();\n\n// Share same engine:\nvar todoCache = new Cacheman('todo', { engine: engine });\nvar blogCache = new Cacheman('blog', { engine: engine });\n```\n\n### cache.set(key, value, [ttl, [fn]])\n\nStores or updates a value.\n\n```javascript\ncache.set('foo', { a: 'bar' }, function (err, value) {\n  if (err) throw err;\n  console.log(value); //-> {a:'bar'}\n});\n\ncache.set('foo', { a: 'bar' })\n  .then(function (value) {\n    console.log(value); //-> {a:'bar'}\n  });\n```\n\nOr add a TTL(Time To Live) in seconds like this:\n\n```javascript\n// key will expire in 60 seconds\ncache.set('foo', { a: 'bar' }, 60, function (err, value) {\n  if (err) throw err;\n  console.log(value); //-> {a:'bar'}\n});\n```\n\nYou can also use humman readable values for `ttl` like: `1s`, `1m`, etc. Check out the [ms](https://github.com/guille/ms.js) project for additional information on supported formats.\n\n```javascript\n// key will expire in 45 seconds\ncache.set('foo', { a: 'bar' }, '45s', function (err, value) {\n  if (err) throw err;\n  console.log(value); //-> {a:'bar'}\n});\n```\n\nThe key may also be an array. It will be joined into a string using the `delimiter` option.\n```javascript\n// equivalent to setting 'foo:bar'\ncache.set(['foo', 'bar'], { a: 'baz' }, function (err, value) {\n  if (err) throw err;\n  console.log(value); //-> {a:'baz'}\n});\n```\n\n### cache.get(key, fn)\n\nRetrieves a value for a given key, if there is no value for the given key a null value will be returned.\n\n```javascript\ncache.get('foo', function (err, value) {\n  if (err) throw err;\n  console.log(value);\n});\n\ncache.get('foo')\n  .then(function (value) {\n    console.log(value);\n  });\n```\n\n### cache.del(key, [fn])\n\nDeletes a key out of the cache.\n\n```javascript\ncache.del('foo', function (err) {\n  if (err) throw err;\n  // foo was deleted\n});\n\ncache.del('foo')\n  .then(function () {\n    // foo was deleted\n  });\n```\n\n### cache.clear([fn])\n\nClear the cache entirely, throwing away all values.\n\n```javascript\ncache.clear(function (err) {\n  if (err) throw err;\n  // cache is now clear\n});\n\ncache.clear()\n  .then(function () {\n    // cache is now clear\n  });\n```\n\n### cache.cache(key, data, ttl, [fn])\n\nCache shortcut method that support middleware. This method will first call `get`\nand if the key is not found in cache it will call `set` to save the value in cache.\n\n```javascript\ncache.cache('foo', { a: 'bar' }, '45s', function (err) {\n  if (err) throw err;\n  console.log(value); //-> {a:'bar'}\n});\n\ncache.cache('foo', { a: 'bar' }, '45s')\n  .then(function () {\n    console.log(value); //-> {a:'bar'}\n  });\n```\n\n### cache.use(fn)\n\nThis method allow to add middlewares that will be executed when the `cache` method\nis called, meaning that you can intercept the function right after the `get` and `set` methods.\n\nFor example we can add a middleware that will force ttl of 10 seconds on all values to cache:\n\n```javascript\nfunction expireInMiddleware (expireIn) {\n  return function (key, data, ttl, next) {\n    next(null, data, expire);\n  }\n};\n\ncache.use(expireInMiddleware('10s'));\n\ncache.cache('foo', { a: 'bar' }, '45s', function (err) {\n  if (err) throw err;\n  console.log(value); //-> {a:'bar'}\n});\n```\n\nOr we can add a middleware to overwrite the value:\n\n```javascript\nfunction overwriteMiddleware (val) {\n  return function (key, data, ttl, next) {\n    next(null, val, expire);\n  }\n};\n\ncache.use(overwriteMiddleware({ a: 'foo' }));\n\ncache.cache('foo', { a: 'bar' }, '45s', function (err, data) {\n  if (err) throw err;\n  console.log(data); //-> {a:'foo'}\n});\n```\n\nYou can also pass errors as first argument to stop the cache execution:\n\n```javascript\nfunction overwriteMiddleware () {\n  return function (key, data, ttl, next) {\n    next(new Error('There was an error'));\n  }\n};\n\ncache.use(overwriteMiddleware());\n\ncache.cache('foo', { a: 'bar' }, '45s', function (err) {\n  if (err) throw err; // Will throw the error\n});\n```\n\n### cache.wrap(key, work, [ttl, [fn]])\n\nWraps a function in cache. The first time the function is run, its results are\nstored in cache so subsequent calls retrieve from cache instead of calling the function.\n\nThe `work` function can call a node style callback argument or return a value including a promise.\n\nThe `work` function and `ttl` can also be passed in the opposite order. This is primarily to make promise returning calls cleaner.\n\n```javascript\nfunction work(callback) {\n  callback(null, { a: 'foo' });\n}\n\ncache.wrap('foo', work, '45s', function (err, data) {\n  console.log(data); //-> {a: 'foo'}\n});\n\ncache.wrap('foo', work, '45s')\n  .then(function (data) {\n    console.log(data); //-> {a: 'foo'}\n  });\n\ncache.wrap('foo', '45s',\n  function() {\n    return Promise.resolve({ a: 'foo' });\n  })\n  .then(function (data) {\n    console.log(data); //-> {a: 'foo'}\n  });\n\ncache.wrap('foo', '45s',\n  function() {\n    return { a: 'foo' };\n  })\n  .then(function (data) {\n    console.log(data); //-> {a: 'foo'}\n  });\n```\n\n## Run tests\n\n``` bash\n$ make test\n```\n\n## Supported engines\n\n * [cacheman-memory](https://github.com/cayasso/cacheman-memory)\n * [cacheman-redis](https://github.com/cayasso/cacheman-redis)\n * [cacheman-mongo](https://github.com/cayasso/cacheman-mongo)\n * [cacheman-file](https://github.com/taronfoxworth/cacheman-file)\n\n## Credits\n\nThis library was inspired by the [hilmi](https://github.com/eknkc/hilmi) project.\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2013 Jonathan Brumley &lt;cayasso@gmail.com&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"cayasso","email":"cayasso@gmail.com"}],"time":{"modified":"2022-06-13T05:23:47.044Z","created":"2013-11-13T05:45:40.970Z","0.1.0":"2013-11-13T05:45:42.143Z","0.1.1":"2013-11-14T21:15:18.482Z","1.0.0":"2013-11-19T21:13:42.296Z","1.0.1":"2013-11-20T02:34:20.220Z","1.0.2":"2014-02-08T18:35:11.719Z","1.0.3":"2014-07-15T22:07:27.259Z","1.0.4":"2015-02-12T00:15:26.020Z","1.1.0":"2015-02-12T08:39:00.496Z","1.1.1":"2015-07-07T20:57:39.721Z","2.0.0":"2015-10-01T06:04:43.407Z","2.0.1":"2015-10-31T23:44:42.275Z","2.0.3":"2015-11-01T06:26:21.421Z","2.0.4":"2015-11-01T08:11:38.246Z","2.0.5":"2015-11-01T08:18:19.293Z","2.1.0":"2015-12-28T15:09:05.464Z","2.2.1":"2016-01-28T06:57:00.617Z"},"author":{"name":"Jonathan Brumley","email":"cayasso@gmail.com"},"repository":{"type":"git","url":"git://github.com/cayasso/cacheman.git"},"readmeFilename":"README.md","homepage":"https://github.com/cayasso/cacheman#readme","keywords":["cache","file","redis","memory","mongodb","caching","mongo","store","ttl","middleware","bucket"],"bugs":{"url":"https://github.com/cayasso/cacheman/issues"},"license":"MIT","users":{"dantman":true,"windperson":true,"hans-d":true,"statico":true,"nerdybeast":true,"elussich":true,"mexolotl":true,"dpjayasekara":true,"grumpycat":true,"gfilip":true,"machinabio":true,"meeh":true}}