{"_id":"catbox-mongodb-yalo","_rev":"49-8c444f8067d9595946d71251a1d101e3","name":"catbox-mongodb-yalo","dist-tags":{"latest":"4.2.1"},"versions":{"4.2.1":{"name":"catbox-mongodb-yalo","version":"4.2.1","keywords":["cache","catbox","mongodb"],"author":{"url":"http://hueniverse.com","name":"Eran Hammer","email":"eran@hammer.io"},"license":"BSD-3-Clause","_id":"catbox-mongodb-yalo@4.2.1","maintainers":[{"name":"engyalo","email":"eng@yalochat.com"}],"contributors":[{"url":"https://futurestud.io","name":"Marcus Poehls","email":"marcus@futurestud.io"},{"url":"http://jsgeek.com","name":"Wyatt Preul","email":"wpreul@gmail.com"},{"name":"Jarda Kotesovec","email":"jarda.kotesovec@gmail.com"}],"homepage":"https://github.com/jlimas/catbox-mongodb#readme","bugs":{"url":"https://github.com/jlimas/catbox-mongodb/issues"},"dist":{"shasum":"29ef6f3cb41c68c792a6d3d86081f306a805bf45","tarball":"https://registry.npmjs.org/catbox-mongodb-yalo/-/catbox-mongodb-yalo-4.2.1.tgz","fileCount":10,"integrity":"sha512-hrrqh1Sf2J32i+lGECtmuTV2CMtaIWdFAo56O1gyQ2OFmcAN3YyWyzHLUGFN196wPBth8myVDtjbarecyWJbxA==","signatures":[{"sig":"MEYCIQCeJYsuY70I2PiwG9+8U94oLqmxn7hM5ab4dZk21s+YAgIhAO5W9XrhQBAFr23buHtcu456+8GLpVm6yQMOMbbGUtCc","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42336,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJibEWOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmri3g/+I2MabLDPnn3eHAv6YkaDOvZhBwX2uaSIjZU2Lq8hWonF/Cep\r\nj+qI9kvgOAtW/8ho49pVcRHp6CbTlp3vKzXTcE4zKvosuaWzhYEgrcm/hDFv\r\njWXzrJqFuAL0oRKxDgMdQWbd+Ldn7ySerhZ8QPNN3ax3zlhCY2MpH/4+a9vU\r\nnRqkB1Tnb5u3dkirl8YFCrJHvU3FgrP9x5+CO7NwK8L9sa/G8dZrqikbJx/g\r\nHPch/aCJX4oW6hE2MUTAvEEazAVhj7wqvWXtJkmPdgue8oti4Fb7InFpUF1D\r\ny109c3H3W0Q5o6LEi9nOv8cdgSrPJAwCrSUWZs6KVb4rXMypBzRqOlJ1sjkU\r\nLQwbnKDTKYenXSQZUOHIIVFbaHshtEjb3i1fS8MmUXkrBDS/2PzoWUG9Fkvc\r\nJHO+ZNAILJ2RaqMyGFjiSrnYLGNB/IEoxVJS3XVAPVFg7Lw/IcV1u/lGYfAr\r\njqRPizZK7zthVVuPaPw8LEFzGPIx8Du6+KSxuNWiOnRfEhIpX8sZY8KgRakM\r\nPDGnzl+Qqf9BJdZoprn3/SFwBblQesqQOoxwKiGleQryRRZTZFQD6xSk3BtT\r\nO3uvOVXW5fBUxK8CjaeXChGI3sgI0qz04c7MDWj+Ia81L/6qnZ60YsJpS9yb\r\nX9byVx8HIsqZ+DHfFMQlhrsNarVTE72LP+A=\r\n=602j\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","engines":{"node":">=8.9.0"},"gitHead":"ccac7d7b9f71fa6e6ddde8e818df60639d3e495f","scripts":{"test":"lab -r console -t 100 -a code -L","test-cov-html":"lab -r html -o coverage.html -a code -L"},"_npmUser":{"name":"engyalo","email":"eng@yalochat.com"},"repository":{"url":"git+https://github.com/jlimas/catbox-mongodb.git","type":"git"},"_npmVersion":"6.14.11","description":"MongoDB adapter for catbox","directories":{},"_nodeVersion":"14.15.5","dependencies":{"boom":"7.x.x","hoek":"6.x.x","mongodb":"3.x.x"},"_hasShrinkwrap":false,"devDependencies":{"lab":"18.x.x","code":"5.x.x","catbox":"10.x.x"},"_npmOperationalInternal":{"tmp":"tmp/catbox-mongodb-yalo_4.2.1_1651262862054_0.9227493063721153","host":"s3://npm-registry-packages"}}},"time":{"created":"2022-04-29T20:07:41.990Z","modified":"2026-03-06T13:20:45.417Z","4.2.1":"2022-04-29T20:07:42.216Z"},"bugs":{"url":"https://github.com/jlimas/catbox-mongodb/issues"},"author":{"url":"http://hueniverse.com","name":"Eran Hammer","email":"eran@hammer.io"},"license":"BSD-3-Clause","homepage":"https://github.com/jlimas/catbox-mongodb#readme","keywords":["cache","catbox","mongodb"],"repository":{"url":"git+https://github.com/jlimas/catbox-mongodb.git","type":"git"},"description":"MongoDB adapter for catbox","contributors":[{"url":"https://futurestud.io","name":"Marcus Poehls","email":"marcus@futurestud.io"},{"url":"http://jsgeek.com","name":"Wyatt Preul","email":"wpreul@gmail.com"},{"name":"Jarda Kotesovec","email":"jarda.kotesovec@gmail.com"}],"maintainers":[{"email":"guilherme@yalopartner.com","name":"guilhermesborz"},{"email":"bonnie@yalo.com","name":"bonniemilianb"},{"email":"ezequiel.banno@yalo.com","name":"ebannoyalo"},{"email":"eduardo.ochoa@yalopartner.com","name":"ochoa_yalo"},{"email":"uriel.diaz@yalopartner.com","name":"uriel-yalo"},{"email":"byron.ramos@yalo.com","name":"byronramos"},{"email":"sidharth.narayanan@yalocontractor.com","name":"sidnarayanan"},{"email":"walter.moorlag@yalocontractor.com","name":"waltermoorlag"},{"email":"raul.lozano@yalocontractor.com","name":"rlozano"},{"email":"manuel.cordon@yalo.com","name":"manuelcordon-yalo"},{"email":"cesar.aguirre@yalopartner.com","name":"cesar-aguirre-yalo"},{"email":"tarik.feres@yalopartner.com","name":"tarikferes"},{"email":"reinhold@yalo.com","name":"reinholdyalo"},{"email":"adan@yalo.com","name":"adanmuguiro"},{"email":"daniel.rodriguez@yalo.com","name":"zkropotkine"},{"email":"abraham@yalo.com","name":"branmendozay"},{"email":"julio.gonzalez@yalo.com","name":"julio.gonzalez"},{"email":"nathali@yalo.com","name":"nathali"},{"email":"alex@yalo.com","name":"alex_yalo"},{"email":"jair@yalo.com","name":"jairyalere"},{"email":"german@yalo.com","name":"gago_ar"},{"email":"gabriel@yalo.com","name":"gabriel_yalo"},{"email":"janet@yalo.com","name":"janetyalo"},{"email":"gerardo.ezquerra@yalo.com","name":"catyalere"},{"email":"josua.guaramato@yalopartner.com","name":"josuayalo"},{"email":"anner.delgado@yalopartner.com","name":"annerdelgado"},{"email":"moises.flores@yalo.com","name":"moisesflores22"},{"email":"rommel.liendo@yalopartner.com","name":"rommelyalopartner"},{"email":"marco.ramon@yalopartner.com","name":"marco.ramon"},{"email":"yao.gomez@yalopartner.com","name":"yaogomezyalo"},{"email":"pablo@yalo.com","name":"josepablohm"},{"email":"diego.prestes@yalopartner.com","name":"diegopresteslikescode"},{"email":"johnatha@yalo.com","name":"jfelix-yalo"},{"email":"gustavo.castillo@yalo.com","name":"gustavoyalo"},{"email":"fernando@yalo.com","name":"fernandorincon"},{"email":"eng@yalochat.com","name":"yalo-engineering"},{"email":"ronaldo.ferreira@yalo.com","name":"ronaldo-ferreira-yalo"},{"email":"alejandro.cruz@yalocontractor.com","name":"alexsondermut"},{"email":"andres.pipicello@yalo.com","name":"andres.pipicello.yalo"},{"email":"jaider.panqueva@yalo.com","name":"jaideryalo"},{"email":"eduardo.pena@yalo.com","name":"pipi-yalo"},{"email":"carlos.marin@yalocontractor.com","name":"marinyalocontractor"},{"email":"fabian.guidobaldi@yalo.com","name":"fguidobaldiyalo"},{"email":"vinicius.alberti@yalocontractor.com","name":"vinialberti-yalo"},{"email":"edgar.figueroa@yalocontractor.com","name":"edgar_figueroa_yalo"},{"email":"guilherme.pinto@yalocontractor.com","name":"guiluizmaia"},{"email":"vinicius.passos@yalocontractor.com","name":"viniciuspassos-yalo"},{"email":"luiz.campos@yalocontractor.com","name":"lrcamposyalo"},{"email":"willian.novaes@yalocontractor.com","name":"willian-novaes-yalo"},{"email":"arthur.queiroz@yalo.com","name":"arthurqueiroz-z"},{"email":"gabriel.matuk@yalo.com","name":"gabrielmatukyalo"}],"readme":"# catbox-mongodb\n\nMongoDB adapter for [catbox](https://github.com/hapijs/catbox)\n\nNote: the module has been deprecated and archived due to low usage. The last publish version is known it work well but that may change in the future as breaking changes of catbox are introduced. If you rely on this module, consider forking it and creating your own alternative (it is very little code). You can also ask to take over and the module will be moved to your personal account to maintain.\n\n**catbox-mongodb** serializes values to BSON using MongoDB driver, therefore following data types are supported for this adapter: Object, Array, Number, String, Date, RegExp.\n\n\n## Installation\n> The lastest `catbox-mongodb` version `4.x` works only with **hapi v17 and v18**\n\nInstall `catbox-mongodb` via NPM. Remember that `catbox-mongodb` requires its parent module [`catbox`](https://github.com/hapijs/catbox):\n\n```\nnpm install catbox catbox-mongodb\n```\n\n---\n\nDo you use **hapi v16 or lower**? Install `catbox-mongodb` version `3.x` with a compatible version of `catbox`:\n\n```\n# for hapi v16 (or lower)\nnpm install catbox@9 catbox-mongodb@3\n```\n\n\n## Options\n`catbox-mongodb` accepts the following options:\n\n- `uri` - the [MongoDB URI](https://docs.mongodb.com/manual/reference/connection-string/), defaults to `'mongodb://127.0.0.1:27017/?maxPoolSize=5'`\n- `partition` - the MongoDB database for cached items\n\n\n## Usage\nSample catbox cache initialization :\n\n```JS\nconst Catbox = require('catbox');\n\nconst cache = new Catbox.Client(require('catbox-mongodb'), {\n    uri: 'your-mongodb-uri', // Defaults to 'mongodb://127.0.0.1:27017/?maxPoolSize=5'\n    partition: 'cache-users'\n})\n```\n\nOr configure your hapi server to use `catbox-mongodb` as the caching strategy (code snippet uses hapi `v17`):\n\n```js\nconst Hapi = require('hapi')\n\nconst server = new Hapi.Server({\n    cache : [{\n        name: 'mongodb-cache',\n        engine: require('catbox-mongodb'),\n        uri: 'your-mongodb-uri', // Defaults to 'mongodb://127.0.0.1:27017/?maxPoolSize=5'\n        partition: 'cache-posts'\n    }]\n});\n```\n\nFor hapi `v18` you need a slightly different config:\n\n```js\nconst Hapi = require('hapi')\n \nconst server = new Hapi.Server({\n    cache : [{\n        name: 'mongodb-cache',\n        provider: {\n          constructor: require('catbox-mongodb'),\n          options: {\n            uri       : 'your-mongodb-uri', // Defaults to 'mongodb://127.0.0.1:27017/?maxPoolSize=5'\n            partition : 'cache'\n          }\n        }\n    }]\n});\n```\n","readmeFilename":"README.md"}