{"_id":"sails-redis","_rev":"36-764da2ea584b87961237f14ddff903f6","name":"sails-redis","description":"A lightweight Redis adapter for Sails / Waterline.","dist-tags":{"latest":"1.0.0","for-sails-0.12":"0.10.7","edge":"1.1.0-1"},"versions":{"0.0.0":{"name":"sails-redis","version":"0.0.0","description":"Redis adapter for Sails.js","scripts":{"test":"mocha"},"keywords":["redis","orm","waterline","sails"],"author":{"name":"Mike McNeil"},"license":"MIT","dependencies":{"async":"~0.1.22","underscore":"~1.4.3","underscore.string":"~2.3.1"},"_id":"sails-redis@0.0.0","dist":{"shasum":"d5c6eb4f07d82d7ecf0fe635a8f85a026b06cdb3","tarball":"https://registry.npmjs.org/sails-redis/-/sails-redis-0.0.0.tgz","integrity":"sha512-a33VTcOHExCGyS3Zs1n4+HEsG7lW9OiEb0vf0+NFKUsDvf1210PQYMJt8u8w4E2hKbZWssqNPcyb7TxQFGaUGA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICLRADGZjLdfex0GkifrrJ5Jve0+D+mLJHOaZaG4/dHrAiEAhdKhwG53iOBh/VKKrZNZCOwk0PiJ67DID0qi6iUuibE="}]},"_from":".","_npmVersion":"1.2.1","_npmUser":{"name":"balderdashy","email":"mike@balderdashdesign.com"},"maintainers":[{"name":"balderdashy","email":"mike@balderdashdesign.com"}],"directories":{}},"0.9.3":{"name":"sails-redis","version":"0.9.3","description":"Redis adapter for waterline","main":"index.js","author":{"name":"vanetix","email":"matmcfarland@gmail.com"},"contributors":[{"name":"Matt McFarland","email":"matmcfarland@gmail.com"},{"name":"Cody Stoltman","email":"particlebanana@gmail.com"},{"name":"Greg Thornton","email":"xdissent@me.com"},{"name":"Carlo DiCelico","email":"carlo@diceli.co"}],"scripts":{"test":"make test"},"repository":{"type":"git","url":"https://github.com/balderdashy/sails-redis.git"},"keywords":["redis","orm","waterline","sails","sailsjs","sails.js"],"license":"MIT","devDependencies":{"mocha":"~1.12.0","waterline-adapter-tests":"~0.9.4"},"dependencies":{"lodash":"2.4.1","redis":"0.8.4","async":"0.2.9","waterline-errors":"~0.9.0","waterline-criteria":"~0.9.7"},"bugs":{"url":"https://github.com/balderdashy/sails-redis/issues"},"homepage":"https://github.com/balderdashy/sails-redis","_id":"sails-redis@0.9.3","dist":{"shasum":"ddd84e44ef1c0d407c664b4009c3ff9edd6846d4","tarball":"https://registry.npmjs.org/sails-redis/-/sails-redis-0.9.3.tgz","integrity":"sha512-72nhNLYoR+iLA9b2flHSnYXJtZ4da5w1bNeeh1NqXd7HURivtAJoY+kN+zLAUjLISmWhSDLv9gJRie6OR0lkWg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBlexVfUFMLUx5s8XTxLqxgV47l3QyYG3hj0GktOa/pMAiEAtgZ4wNIY1MTZhUvMiy5vwLPyCKzgXe/poU4PNIP51gg="}]},"_from":".","_npmVersion":"1.3.17","_npmUser":{"name":"balderdashy","email":"mike@balderdash.co"},"maintainers":[{"name":"balderdashy","email":"mike@balderdashdesign.com"},{"name":"particlebanana","email":"particlebanana@gmail.com"},{"name":"vanetix","email":"matmcfarland@gmail.com"}],"directories":{}},"0.10.0-rc1":{"name":"sails-redis","version":"0.10.0-rc1","description":"Redis adapter for waterline","main":"index.js","author":{"name":"vanetix","email":"matmcfarland@gmail.com"},"contributors":[{"name":"Matt McFarland","email":"matmcfarland@gmail.com"},{"name":"Cody Stoltman","email":"particlebanana@gmail.com"},{"name":"Greg Thornton","email":"xdissent@me.com"},{"name":"Carlo DiCelico","email":"carlo@diceli.co"}],"scripts":{"test":"make test"},"repository":{"type":"git","url":"https://github.com/balderdashy/sails-redis.git"},"keywords":["redis","orm","waterline","sails","sailsjs","sails.js"],"license":"MIT","devDependencies":{"mocha":"~1.12.0","waterline-adapter-tests":"~0.10.0","captains-log":"~0.11.1"},"dependencies":{"lodash":"~2.4.1","redis":"~0.8.4","async":"~0.2.9","waterline-errors":"~0.10.0","waterline-criteria":"~0.10.0"},"waterlineAdapter":{"waterlineVersion":"~0.10.0","interfaces":["semantic","queryable","migratable","associations"]},"bugs":{"url":"https://github.com/balderdashy/sails-redis/issues"},"homepage":"https://github.com/balderdashy/sails-redis","_id":"sails-redis@0.10.0-rc1","dist":{"shasum":"28974cbd1f3701a83f69a5d74f636708dab145d1","tarball":"https://registry.npmjs.org/sails-redis/-/sails-redis-0.10.0-rc1.tgz","integrity":"sha512-QnI5W8EBQohmOezZDgn1Vy3I+sNaf+ZsDCN9h+jW2QT5y15BILkDCH9McUseOXr8btGYc3tEQ4A/6p8IQW5W0g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAtVaRjhYVt6zhOh6OYXOTY2/dQDrtQlisXC6aL76kclAiArjypT6WH15gzR7vI9ehAngPyGYxsMWnbb9HvGUnaAiw=="}]},"_from":".","_npmVersion":"1.3.17","_npmUser":{"name":"balderdashy","email":"mike@balderdash.co"},"maintainers":[{"name":"balderdashy","email":"mike@balderdashdesign.com"},{"name":"particlebanana","email":"particlebanana@gmail.com"},{"name":"vanetix","email":"matmcfarland@gmail.com"},{"name":"sgress454","email":"scott@balderdash.co"}],"directories":{}},"0.10.0-rc2":{"name":"sails-redis","version":"0.10.0-rc2","description":"Redis adapter for waterline","main":"index.js","author":{"name":"vanetix","email":"matmcfarland@gmail.com"},"contributors":[{"name":"Matt McFarland","email":"matmcfarland@gmail.com"},{"name":"Cody Stoltman","email":"particlebanana@gmail.com"},{"name":"Greg Thornton","email":"xdissent@me.com"},{"name":"Carlo DiCelico","email":"carlo@diceli.co"}],"scripts":{"test":"make test"},"repository":{"type":"git","url":"https://github.com/balderdashy/sails-redis.git"},"keywords":["redis","orm","waterline","sails","sailsjs","sails.js"],"license":"MIT","devDependencies":{"mocha":"~1.12.0","waterline-adapter-tests":"~0.10.0","captains-log":"~0.11.1"},"dependencies":{"lodash":"~2.4.1","redis":"~0.10.2","async":"~0.9.0","waterline-errors":"~0.10.0","waterline-criteria":"~0.10.7"},"waterlineAdapter":{"waterlineVersion":"~0.10.0","interfaces":["semantic","queryable","associations"]},"bugs":{"url":"https://github.com/balderdashy/sails-redis/issues"},"homepage":"https://github.com/balderdashy/sails-redis","_id":"sails-redis@0.10.0-rc2","dist":{"shasum":"2ff89bbccd1f77f759cccfb3274dd57e47b5cd2e","tarball":"https://registry.npmjs.org/sails-redis/-/sails-redis-0.10.0-rc2.tgz","integrity":"sha512-WrK+lQoYN90ockrxy+l2QOrWSFkLlH+5R6p2/24gpvWEbA6WFWLRHIERUrm8fdDCmQK8y6vWi1tFEcvV11HSBw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZJo2v/np3Bo2UBd0fIUHzz85Y4QkOOZrGQVOApoER8gIgcXBA0BVXkmfb7BsX+Uv9lxTJzpHSPPScH5QNerE+/j4="}]},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"particlebanana","email":"particlebanana@gmail.com"},"maintainers":[{"name":"balderdashy","email":"mike@balderdashdesign.com"},{"name":"particlebanana","email":"particlebanana@gmail.com"},{"name":"vanetix","email":"matmcfarland@gmail.com"},{"name":"sgress454","email":"scott@balderdash.co"}],"directories":{}},"0.10.1":{"name":"sails-redis","version":"0.10.1","description":"Redis adapter for waterline","main":"index.js","author":{"name":"vanetix","email":"matmcfarland@gmail.com"},"contributors":[{"name":"Matt McFarland","email":"matmcfarland@gmail.com"},{"name":"Cody Stoltman","email":"particlebanana@gmail.com"},{"name":"Greg Thornton","email":"xdissent@me.com"},{"name":"Carlo DiCelico","email":"carlo@diceli.co"}],"scripts":{"test":"make test"},"repository":{"type":"git","url":"https://github.com/balderdashy/sails-redis.git"},"keywords":["redis","orm","waterline","sails","sailsjs","sails.js"],"license":"MIT","devDependencies":{"mocha":"~1.12.0","waterline-adapter-tests":"~0.10.0","captains-log":"~0.11.1"},"dependencies":{"lodash":"~2.4.1","redis":"~0.10.2","async":"~0.9.0","waterline-errors":"~0.10.0","waterline-criteria":"~0.10.7","waterline-cursor":"~0.0.3"},"waterlineAdapter":{"waterlineVersion":"~0.10.0","interfaces":["semantic","queryable","associations"]},"bugs":{"url":"https://github.com/balderdashy/sails-redis/issues"},"homepage":"https://github.com/balderdashy/sails-redis","_id":"sails-redis@0.10.1","_shasum":"e1a4b90d72f27dd567276087f081bd2154383e09","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"sgress454","email":"scott@balderdash.co"},"maintainers":[{"name":"balderdashy","email":"mike@balderdashdesign.com"},{"name":"particlebanana","email":"particlebanana@gmail.com"},{"name":"vanetix","email":"matmcfarland@gmail.com"},{"name":"sgress454","email":"scott@balderdash.co"}],"dist":{"shasum":"e1a4b90d72f27dd567276087f081bd2154383e09","tarball":"https://registry.npmjs.org/sails-redis/-/sails-redis-0.10.1.tgz","integrity":"sha512-Qto/M80A+PvSFluNtYpbp2+GaXlwRSDwWc+IWP60sXQ80uHHBHH414VFYe7GstoDXsYBCDXgdfqaed32NsufWQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCr3jvmTv2llFAm7c/X52OnbftrTkF8MZAVBk0NMiCRLQIhALIrly/pFnPPM2+zV7gEMPVlmQVeaqT6amiBEq2vlFjY"}]},"directories":{}},"0.10.2":{"name":"sails-redis","version":"0.10.2","description":"Redis adapter for waterline","main":"index.js","author":{"name":"vanetix","email":"matmcfarland@gmail.com"},"contributors":[{"name":"Matt McFarland","email":"matmcfarland@gmail.com"},{"name":"Cody Stoltman","email":"particlebanana@gmail.com"},{"name":"Greg Thornton","email":"xdissent@me.com"},{"name":"Carlo DiCelico","email":"carlo@diceli.co"}],"scripts":{"test":"make test"},"repository":{"type":"git","url":"https://github.com/balderdashy/sails-redis.git"},"keywords":["redis","orm","waterline","sails","sailsjs","sails.js"],"license":"MIT","devDependencies":{"mocha":"~1.12.0","waterline-adapter-tests":"~0.10.0","captains-log":"~0.11.1"},"dependencies":{"lodash":"~2.4.1","redis":"~0.10.2","async":"~0.9.0","waterline-errors":"~0.10.0","waterline-criteria":"~0.10.7","waterline-cursor":"~0.0.3"},"waterlineAdapter":{"waterlineVersion":"~0.10.0","interfaces":["semantic","queryable","associations"]},"bugs":{"url":"https://github.com/balderdashy/sails-redis/issues"},"homepage":"https://github.com/balderdashy/sails-redis","_id":"sails-redis@0.10.2","_shasum":"959bc0a8018165910cdffd44ba8eff8a7c35c6c3","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"sgress454","email":"scott@balderdash.co"},"maintainers":[{"name":"balderdashy","email":"mike@balderdashdesign.com"},{"name":"particlebanana","email":"particlebanana@gmail.com"},{"name":"vanetix","email":"matmcfarland@gmail.com"},{"name":"sgress454","email":"scott@balderdash.co"}],"dist":{"shasum":"959bc0a8018165910cdffd44ba8eff8a7c35c6c3","tarball":"https://registry.npmjs.org/sails-redis/-/sails-redis-0.10.2.tgz","integrity":"sha512-IK8IPMgVu0zqEPSOXAoA9oEcOJApspWydNcrmwLACZ15QJi/hPCvt8+X8GfVDdTdS1LSVt2if47TOh+D4oYDmg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDETMeOJ+uCVwSR6t+pTTR0Ky+c8ozJuV0JvXAGoR9ROAIhAPOzLog5m96geoSXmFoZ6O7sZEwW8Usz37cbtfi0QgdA"}]},"directories":{}},"0.10.3":{"name":"sails-redis","version":"0.10.3","description":"Redis adapter for waterline","main":"index.js","author":{"name":"vanetix","email":"matmcfarland@gmail.com"},"contributors":[{"name":"Matt McFarland","email":"matmcfarland@gmail.com"},{"name":"Cody Stoltman","email":"particlebanana@gmail.com"},{"name":"Greg Thornton","email":"xdissent@me.com"},{"name":"Carlo DiCelico","email":"carlo@diceli.co"}],"scripts":{"test":"make test"},"repository":{"type":"git","url":"https://github.com/balderdashy/sails-redis.git"},"keywords":["redis","orm","waterline","sails","sailsjs","sails.js"],"license":"MIT","devDependencies":{"mocha":"~1.12.0","waterline-adapter-tests":"~0.10.0","captains-log":"~0.11.1"},"dependencies":{"lodash":"~2.4.1","redis":"~0.12.1","async":"~0.9.0","waterline-errors":"~0.10.0","waterline-criteria":"~0.10.7","waterline-cursor":"~0.0.3"},"waterlineAdapter":{"waterlineVersion":"~0.10.0","interfaces":["semantic","queryable","associations"]},"bugs":{"url":"https://github.com/balderdashy/sails-redis/issues"},"homepage":"https://github.com/balderdashy/sails-redis","_id":"sails-redis@0.10.3","dist":{"shasum":"c0c99a7a2bdcef5a8f3e1b17e11980e230d3a02a","tarball":"https://registry.npmjs.org/sails-redis/-/sails-redis-0.10.3.tgz","integrity":"sha512-zYAnnfJ6s3GiyeT/GtVJhL2q/g4Bp9b1l+0Hs/xmS/XFwOIapCHn7arcbbtbVRJqv6FHrLMx4/W8q5fdCPcqXw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGpBrUaNcihlv0Ye9PmEbX6niGRw+87+uPhd4OwZHUKPAiEA6feYl9Ffxi0qc7VQwrlpf0dhGNNkea5Zn8mkhA/z/E0="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"vanetix","email":"matmcfarland@gmail.com"},"maintainers":[{"name":"balderdashy","email":"mike@balderdashdesign.com"},{"name":"particlebanana","email":"particlebanana@gmail.com"},{"name":"vanetix","email":"matmcfarland@gmail.com"},{"name":"sgress454","email":"scott@balderdash.co"}],"directories":{}},"0.10.4":{"name":"sails-redis","version":"0.10.4","description":"Redis adapter for waterline","main":"index.js","author":{"name":"vanetix","email":"matmcfarland@gmail.com"},"contributors":[{"name":"Matt McFarland","email":"matmcfarland@gmail.com"},{"name":"Cody Stoltman","email":"particlebanana@gmail.com"},{"name":"Greg Thornton","email":"xdissent@me.com"},{"name":"Carlo DiCelico","email":"carlo@diceli.co"}],"scripts":{"test":"make test"},"repository":{"type":"git","url":"https://github.com/balderdashy/sails-redis.git"},"keywords":["redis","orm","waterline","sails","sailsjs","sails.js"],"license":"MIT","devDependencies":{"mocha":"~1.12.0","waterline-adapter-tests":"~0.10.0","captains-log":"~0.11.1"},"dependencies":{"lodash":"~2.4.1","redis":"~0.12.1","async":"~0.9.0","waterline-errors":"~0.10.0","waterline-criteria":"~0.10.7","waterline-cursor":"~0.0.3"},"waterlineAdapter":{"waterlineVersion":"~0.10.0","interfaces":["semantic","queryable","associations"],"features":[]},"gitHead":"e442ef2687826d4544b28348c28c3f05f216955f","bugs":{"url":"https://github.com/balderdashy/sails-redis/issues"},"homepage":"https://github.com/balderdashy/sails-redis","_id":"sails-redis@0.10.4","_shasum":"7a1dea81533ebde98bcbd35a0ee761412810b933","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"particlebanana","email":"particlebanana@gmail.com"},"maintainers":[{"name":"balderdashy","email":"mike@balderdashdesign.com"},{"name":"particlebanana","email":"particlebanana@gmail.com"},{"name":"vanetix","email":"matmcfarland@gmail.com"},{"name":"sgress454","email":"scott@balderdash.co"}],"dist":{"shasum":"7a1dea81533ebde98bcbd35a0ee761412810b933","tarball":"https://registry.npmjs.org/sails-redis/-/sails-redis-0.10.4.tgz","integrity":"sha512-1/NBZHYbXgT/wR6HB7F+5sGb1sLhhFG8BjlVE8MuyjWxp4u+pyDzIHuF/UWOkePajQ/ylcf+UJ4GJZXeRw1sGw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGLOftvBWGdREIpVkJUfPsFXqQEMICzt+KUcCgnoEBpzAiEA0BBIYrsFjBebGSKXFC71CIUXHaMLtnsLvEhAx1cVut8="}]},"directories":{}},"0.10.5":{"name":"sails-redis","version":"0.10.5","description":"Redis adapter for waterline","main":"index.js","author":{"name":"vanetix","email":"matmcfarland@gmail.com"},"contributors":[{"name":"Matt McFarland","email":"matmcfarland@gmail.com"},{"name":"Cody Stoltman","email":"particlebanana@gmail.com"},{"name":"Greg Thornton","email":"xdissent@me.com"},{"name":"Carlo DiCelico","email":"carlo@diceli.co"}],"scripts":{"test":"make test"},"repository":{"type":"git","url":"git+https://github.com/balderdashy/sails-redis.git"},"keywords":["redis","orm","waterline","sails","sailsjs","sails.js"],"license":"MIT","devDependencies":{"mocha":"*","waterline-adapter-tests":"~0.10.0","captains-log":"~0.11.1"},"dependencies":{"lodash":"~3.9.0","redis":"~0.12.0","async":"~1.2.0","waterline-errors":"~0.10.0","waterline-criteria":"~0.11.1","waterline-cursor":"~0.0.5"},"waterlineAdapter":{"waterlineVersion":"~0.10.0","interfaces":["semantic","queryable","associations"],"features":["crossAdapter"]},"gitHead":"99c7460220d942ac7ca5c909f8b9b2b3aa797550","bugs":{"url":"https://github.com/balderdashy/sails-redis/issues"},"homepage":"https://github.com/balderdashy/sails-redis#readme","_id":"sails-redis@0.10.5","_shasum":"4be27d95e46bce3de8062d4a9843a39558abb72c","_from":".","_npmVersion":"2.12.0","_nodeVersion":"0.10.37","_npmUser":{"name":"particlebanana","email":"particlebanana@gmail.com"},"maintainers":[{"name":"balderdashy","email":"mike@balderdashdesign.com"},{"name":"particlebanana","email":"particlebanana@gmail.com"},{"name":"vanetix","email":"matmcfarland@gmail.com"},{"name":"sgress454","email":"scott@balderdash.co"}],"dist":{"shasum":"4be27d95e46bce3de8062d4a9843a39558abb72c","tarball":"https://registry.npmjs.org/sails-redis/-/sails-redis-0.10.5.tgz","integrity":"sha512-CsykC+14f52QQPsqzS+bxkzc9MHrrw5xjemjfp3wOw1ujK1QvhzfWojcT5hlfMH9r3y/ho2shJJrPx8Uvx6ELg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDDlxIsTMjV+lyFz4W/o76yo59vXEjbLHrV4RP1TJZV6AiEAnk3n9+DuzG5RO2bVGWjZp30T2NB6aedzEavxL+bg92A="}]},"directories":{}},"0.10.6":{"name":"sails-redis","version":"0.10.6","description":"Redis adapter for waterline","main":"index.js","author":{"name":"vanetix","email":"matmcfarland@gmail.com"},"contributors":[{"name":"Matt McFarland","email":"matmcfarland@gmail.com"},{"name":"Cody Stoltman","email":"particlebanana@gmail.com"},{"name":"Greg Thornton","email":"xdissent@me.com"},{"name":"Carlo DiCelico","email":"carlo@diceli.co"}],"scripts":{"test":"make test"},"repository":{"type":"git","url":"git+https://github.com/balderdashy/sails-redis.git"},"keywords":["redis","orm","waterline","sails","sailsjs","sails.js"],"license":"MIT","devDependencies":{"mocha":"*","waterline-adapter-tests":"~0.10.0","captains-log":"~0.11.1"},"dependencies":{"lodash":"~3.9.0","redis":"~0.12.0","async":"~1.2.0","waterline-errors":"~0.10.0","waterline-criteria":"~0.11.1","waterline-cursor":"~0.0.5"},"waterlineAdapter":{"waterlineVersion":"~0.10.0","interfaces":["semantic","queryable","associations"],"features":["crossAdapter"]},"gitHead":"ace4229fbe043a35472c09b68d2fc90e102be7f2","bugs":{"url":"https://github.com/balderdashy/sails-redis/issues"},"homepage":"https://github.com/balderdashy/sails-redis#readme","_id":"sails-redis@0.10.6","_shasum":"38414c2d4c58f31fd0b8da5f207b920fc264051a","_from":".","_npmVersion":"2.12.0","_nodeVersion":"0.10.37","_npmUser":{"name":"particlebanana","email":"particlebanana@gmail.com"},"dist":{"shasum":"38414c2d4c58f31fd0b8da5f207b920fc264051a","tarball":"https://registry.npmjs.org/sails-redis/-/sails-redis-0.10.6.tgz","integrity":"sha512-gRopzsEb2v9IgavkAtbu7BaIgywKgxPCdAYlnjvTFEUYlqLJjx0liQk5nTi60czZfvUs0A/Ky64n3jhgSvTcvg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCHNp8DLatogVtwFAB7kkfcQFCiuUwe55hlme1D1YMhSgIhALHal2LpiwPF0fZEZ1PSM1whfsrPzin1oLp2O7skuxrh"}]},"maintainers":[{"name":"balderdashy","email":"mike@balderdashdesign.com"},{"name":"particlebanana","email":"particlebanana@gmail.com"},{"name":"vanetix","email":"matmcfarland@gmail.com"},{"name":"sgress454","email":"scott@balderdash.co"}],"directories":{}},"0.10.7":{"name":"sails-redis","version":"0.10.7","description":"Redis adapter for waterline","main":"index.js","author":{"name":"vanetix","email":"matmcfarland@gmail.com"},"contributors":[{"name":"Matt McFarland","email":"matmcfarland@gmail.com"},{"name":"Cody Stoltman","email":"particlebanana@gmail.com"},{"name":"Greg Thornton","email":"xdissent@me.com"},{"name":"Carlo DiCelico","email":"carlo@diceli.co"}],"scripts":{"test":"make test"},"repository":{"type":"git","url":"git+https://github.com/balderdashy/sails-redis.git"},"keywords":["redis","orm","waterline","sails","sailsjs","sails.js"],"license":"MIT","devDependencies":{"mocha":"*","waterline-adapter-tests":"~0.10.0","captains-log":"~0.11.1"},"dependencies":{"lodash":"~3.9.0","redis":"~0.12.0","async":"~1.2.0","waterline-errors":"~0.10.0","waterline-criteria":"~0.11.1","waterline-cursor":"~0.0.5","hiredis":"~0.4.1"},"optionalDependencies":{"hiredis":"~0.4.1"},"waterlineAdapter":{"waterlineVersion":"~0.10.0","interfaces":["semantic","queryable","associations"],"features":["crossAdapter"]},"gitHead":"8c6fc674471e6fd48090b3610a1b111b10a0217f","bugs":{"url":"https://github.com/balderdashy/sails-redis/issues"},"homepage":"https://github.com/balderdashy/sails-redis#readme","_id":"sails-redis@0.10.7","_shasum":"451e8507e2d3affbd764781d99cdf664ea702899","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.2","_npmUser":{"name":"particlebanana","email":"particlebanana@gmail.com"},"dist":{"shasum":"451e8507e2d3affbd764781d99cdf664ea702899","tarball":"https://registry.npmjs.org/sails-redis/-/sails-redis-0.10.7.tgz","integrity":"sha512-axyBwEcrbkPxAgdhEZidqqDYtHrWqvnCMlXzOVDLujvPNE3wmgeBpLOqyU98YqZLJAI5MTcp/vAPkN1/JvUuLg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAsbDtdguFCb0la//daPxoCJ5u+fU67v680HO8VFfvqDAiEAybNEwytheJDplmfGVV8iK1fdPjnjZ0GDVezYLbTZ1aw="}]},"maintainers":[{"name":"balderdashy","email":"mike@balderdashdesign.com"},{"name":"particlebanana","email":"particlebanana@gmail.com"},{"name":"vanetix","email":"matmcfarland@gmail.com"},{"name":"sgress454","email":"scott@balderdash.co"}],"directories":{}},"1.0.0-0":{"name":"sails-redis","version":"1.0.0-0","description":"A lightweight Redis adapter for Sails / Waterline.","author":{"name":"The Sails Company"},"contributors":[{"name":"vanetix","email":" <matmcfarland@gmail.com"},{"name":"Matt McFarland","email":"matmcfarland@gmail.com"},{"name":"Cody Stoltman","email":"particlebanana@gmail.com"},{"name":"Greg Thornton","email":"xdissent@me.com"},{"name":"Carlo DiCelico","email":"carlo@diceli.co"},{"name":"Ryan Clough","email":"me@ryanclough.co.nz"},{"name":"Mike McNeil","email":" <mission@sailsjs.com"}],"scripts":{"test":"node ./node_modules/mocha/bin/mocha --reporter spec test/*.js","posttest":"npm run lint","lint":"node ./node_modules/eslint/bin/eslint *.js"},"repository":{"type":"git","url":"git+https://github.com/balderdashy/sails-redis.git"},"keywords":["redis","orm","waterline","sails","sailsjs","sails.js"],"license":"MIT","devDependencies":{"captains-log":"^1.0.2","eslint":"3.15.0","mocha":"3.0.2","waterline-adapter-tests":"^1.0.0-5"},"dependencies":{"machinepack-redis":"^1.2.2"},"waterlineAdapter":{"waterlineVersion":"~0.13.0","interfaces":[],"features":[]},"gitHead":"0093bfb3b974d2882965ab4df210b920a2fd2096","bugs":{"url":"https://github.com/balderdashy/sails-redis/issues"},"homepage":"https://github.com/balderdashy/sails-redis#readme","_id":"sails-redis@1.0.0-0","_shasum":"7e8ec8b4776991a2f34cf74b161afc67fd8b9d83","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.0","_npmUser":{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},"dist":{"shasum":"7e8ec8b4776991a2f34cf74b161afc67fd8b9d83","tarball":"https://registry.npmjs.org/sails-redis/-/sails-redis-1.0.0-0.tgz","integrity":"sha512-Ekw+fwf4gDwwJ+t4Ylz9JrQxJdv67Lwc7cdnC6ZzHmzuHTtpAJhWDdUOFLggJWl5CRvqit386bkAZb+msUAh4w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHhOzUCrfRTYzvH7mwUJsq6Pgf2kSmX+vXrOPoxsylmZAiEA+1EaDoVSdQzyJTnu3OzbkBkZ5WRb5qxZgy+bIAWiU+w="}]},"maintainers":[{"name":"balderdashy","email":"mike@balderdash.co"},{"name":"mikermcneil","email":"michael.r.mcneil@gmail.com"},{"name":"particlebanana","email":"particlebanana@gmail.com"},{"name":"sgress454","email":"sgress454@treeline.io"},{"name":"vanetix","email":"matmcfarland@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/sails-redis-1.0.0-0.tgz_1487547639186_0.4094737551640719"},"directories":{}},"1.0.0":{"name":"sails-redis","version":"1.0.0","description":"A lightweight Redis adapter for Sails / Waterline.","author":{"name":"The Sails Company"},"contributors":[{"name":"vanetix","email":" <matmcfarland@gmail.com"},{"name":"Matt McFarland","email":"matmcfarland@gmail.com"},{"name":"Cody Stoltman","email":"particlebanana@gmail.com"},{"name":"Greg Thornton","email":"xdissent@me.com"},{"name":"Carlo DiCelico","email":"carlo@diceli.co"},{"name":"Ryan Clough","email":"me@ryanclough.co.nz"},{"name":"Mike McNeil","email":" <mission@sailsjs.com"}],"scripts":{"test":"node ./node_modules/mocha/bin/mocha --reporter spec test/*.js","posttest":"npm run lint","lint":"node ./node_modules/eslint/bin/eslint *.js"},"repository":{"type":"git","url":"git+https://github.com/balderdashy/sails-redis.git"},"keywords":["redis","orm","waterline","sails","sailsjs","sails.js"],"license":"MIT","devDependencies":{"captains-log":"^1.0.2","eslint":"3.15.0","mocha":"3.0.2","waterline-adapter-tests":"^1.0.0-5"},"dependencies":{"machinepack-redis":"^1.2.2"},"waterlineAdapter":{"waterlineVersion":"~0.13.0","interfaces":[],"features":[]},"gitHead":"1f165fa779855efe4e11988e630bda25c96eb731","bugs":{"url":"https://github.com/balderdashy/sails-redis/issues"},"homepage":"https://github.com/balderdashy/sails-redis#readme","_id":"sails-redis@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"mikermcneil","email":"npm@sailsjs.com"},"dist":{"integrity":"sha512-1qnkGvZw8Pn8EHbJjmFzh7XnrH0McxX8VgJdqvmJN0F61FvOsH8H7ZssqIoukTPmcA+IfXv22BVkX0NlbLWW1w==","shasum":"fb686ae029a13f5caa701fce77e3c92f3b519303","tarball":"https://registry.npmjs.org/sails-redis/-/sails-redis-1.0.0.tgz","fileCount":9,"unpackedSize":24210,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDipNL1xwVAhjvFr8znKjvbWRpjjbuyVt30zhWbgw4IZQIgQIqWxwhyUnuHwsl7T6/xVyxmaYa/fsJA2qzEnv6tvQM="}]},"maintainers":[{"email":"mike@balderdash.co","name":"balderdashy"},{"email":"npm@sailsjs.com","name":"mikermcneil"},{"email":"particlebanana@gmail.com","name":"particlebanana"},{"email":"sgress454@treeline.io","name":"sgress454"},{"email":"matmcfarland@gmail.com","name":"vanetix"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sails-redis_1.0.0_1522258880357_0.41082922866641436"},"_hasShrinkwrap":false},"1.1.0-0":{"name":"sails-redis","version":"1.1.0-0","description":"A lightweight Redis adapter for Sails / Node.js apps.  Useful for caching.","author":{"name":"The Sails Company"},"contributors":[{"name":"vanetix","email":" <matmcfarland@gmail.com"},{"name":"Matt McFarland","email":"matmcfarland@gmail.com"},{"name":"Cody Stoltman","email":"particlebanana@gmail.com"},{"name":"Greg Thornton","email":"xdissent@me.com"},{"name":"Carlo DiCelico","email":"carlo@diceli.co"},{"name":"Ryan Clough","email":"me@ryanclough.co.nz"},{"name":"Mike McNeil","email":"humans@sailsjs.com"}],"scripts":{"test":"node ./node_modules/mocha/bin/mocha --reporter spec test/*.js","posttest":"npm run lint","lint":"node ./node_modules/eslint/bin/eslint *.js"},"repository":{"type":"git","url":"git+https://github.com/balderdashy/sails-redis.git"},"keywords":["redis","cache","adapter","sails","sailsjs","sails.js","waterline"],"license":"MIT","engines":{"node":"^6.0"},"dependencies":{"machinepack-redis":"^2.0.0"},"devDependencies":{"captains-log":"^2.0.1","eslint":"4.11.0","mocha":"3.0.2","waterline-adapter-tests":"^1.0.1"},"waterlineAdapter":{"waterlineVersion":"^0.13.0","interfaces":[],"features":[]},"readme":"<h1><span>sails-redis</span><img width=\"175\" alt=\"image_squidhome@2x.png\" src=\"http://i.imgur.com/RIvu9.png\"/></h1>\n\n<h2>Lightweight Redis Adapter for Node.js / Sails Apps</h2>\n\nA lightweight Sails/Waterline adapter for Redis. May be used in a [Sails](http://sailsjs.com) app, or any Node.js module using [Waterline](http://waterlinejs.org) as its ORM.\n\n> #### Heads up\n> **This adapter _does not support the Semantic or Queryable interfaces_.  Instead, it simply provides robust, managed access to the underlying Redis client.**  That means you can't use it to call methods like `.find()`.  Instead, use it as a simple way to easily configure, obtain a connection, and communicate with Redis (e.g. for caching) within the lifecycle of your Node.js / Sails application.\n>\n> **Looking for the old repo?**  See the [for-sails-0.12 branch](https://github.com/balderdashy/sails-redis/tree/for-sails-0.12) of this repo or [ryanc1256/sails-redis](https://github.com/ryanc1256/sails-redis) for examples of conventional adapters that let you use Redis to directly store and query records from your models.\n>\n> **This is an adapter for Sails versions 1.0 and up.**  If you are using an earlier version of Sails (or Waterline &lt;v0.13), check out the [for-sails-0.12 branch](https://github.com/balderdashy/sails-redis/tree/for-sails-0.12).  Since this new release of sails-redis is more lightweight, and does not support the same semantic interface as its predecessor, be aware that there are breaking changes in your app when you upgrade.  But I think you'll find that this new release is a great way to easily communicate with Redis, with minimal interference and a stable API.\n> _If you are interested in upgrading the new, Sails-v1-compatible release of this Redis adapter to support semantic usage (find, create, update, destroy), then please [contact Mike or another core maintainer](http://sailsjs.com/contact)._\n\n\n## Usage\n\n#### Install\n\nInstall is through NPM.\n\n```bash\n$ npm install sails-redis --save\n```\n\n#### Getting started\n\nAfter installing and configuring this adapter (see below), you'll be able to use it to send commands to Redis from your Sails/Node.js app.\n\nFor example:\n\n```javascript\nvar categoryId = 1;//« get from somewhere\n\nsails.getDatastore('cache').leaseConnection(async (db)=>{\n\n  db.get('cached_products_for_category_'+categoryId, function (err, cachedData){\n    if (err) { return proceed(err); }\n\n    var cachedProducts;\n    try {\n      cachedProducts = JSON.parse(cachedData);\n    } catch (e) { return proceed(e); }\n\n    if (cachedProducts) {\n      return proceed(undefined, cachedProducts);\n    }\n\n    // IWMIH, there are no cached products for this category.\n    // So here we might look up the products (Product.find()) to grab them\n    // from some other database (e.g. mysql), then cache them in Redis.\n    // (skipping all that to keep this example short)\n    var newlyCachedProducts = [ /* ... */ ];\n\n    // Finally, when finished:\n    return proceed(undefined, newlyCachedProducts);\n\n  });//</ .get() >\n\n}).exec(function (err, products){\n  if (err) { return res.serverError(err); }\n\n  return res.json(products);\n\n});\n```\n\nNote that the leased connection (`db`) is just a [Redis client instance](https://www.npmjs.com/package/redis).  No need to connect it/bind event listeners-- it's already hot and ready to go.  Any fatal, unexpected errors that would normally be emitted as the \"error\" event are handled by the underlying driver, and can be optionally handled with custom logic by providing a function for `onUnexpectedFailure`.\n\n> Need to use a different Redis client, like ioredis?  Please have a look at the [underlying driver](https://www.npmjs.com/package/machinepack-redis) for the latest info/discussion.\n\n#### Using the Redis client instance\n\nThe documentation for the version of `redis` used in this adapter can be found here:\nhttps://github.com/NodeRedis/node_redis/tree/v.2.8.0#sending-commands\n\n## Configuration\n\nThis adapter supports [standard datastore configuration](http://sailsjs.com/documentation/reference/configuration/sails-config-datastores), as well as some additional low-level options.\n\nFor example, in a Sails app, add the config below to your [`config/datastores.js`](http://sailsjs.com/anatomy/config/datastores-js) file:\n\n```javascript\ncache: {\n  adapter: 'sails-redis',\n  url: 'redis://localhost:6379',\n\n  // Other available low-level options can also be configured here.\n  // (see below for more information)\n},\n```\n\n> Note that you probably shouldn't set Redis as the default datastore for your application (your models wouldn't work!)\n\n\n#### Low-Level Configuration (for redis client)\n\nConfiguration for the underlying Redis client itself is located as an object under the `options`.  The following options are available:\n\n* `parser`: which Redis protocol reply parser to use.  Defaults to `hiredis` if that module is installed.\nThis may also be set to `javascript`.\n* `return_buffers`: defaults to `false`.  If set to `true`, then all replies will be sent to callbacks as node Buffer\nobjects instead of JavaScript Strings.\n* `detect_buffers`: default to `false`. If set to `true`, then replies will be sent to callbacks as node Buffer objects\nif any of the input arguments to the original command were Buffer objects.\nThis option lets you switch between Buffers and Strings on a per-command basis, whereas `return_buffers` applies to\nevery command on a client.\n* `socket_nodelay`: defaults to `true`. Whether to call setNoDelay() on the TCP stream, which disables the\nNagle algorithm on the underlying socket.  Setting this option to `false` can result in additional throughput at the\ncost of more latency.  Most applications will want this set to `true`.\n* `no_ready_check`: defaults to `false`. When a connection is established to the Redis server, the server might still\nbe loading the database from disk.  While loading, the server not respond to any commands.  To work around this,\n`node_redis` has a \"ready check\" which sends the `INFO` command to the server.  The response from the `INFO` command\nindicates whether the server is ready for more commands.  When ready, `node_redis` emits a `ready` event.\nSetting `no_ready_check` to `true` will inhibit this check.\n* `enable_offline_queue`: defaults to `true`. By default, if there is no active\nconnection to the redis server, commands are added to a queue and are executed\nonce the connection has been established. Setting `enable_offline_queue` to\n`false` will disable this feature and the callback will be execute immediately\nwith an error, or an error will be thrown if no callback is specified.\n* `retry_max_delay`: defaults to `null`. By default every time the client tries to connect and fails time before\nreconnection (delay) almost doubles. This delay normally grows infinitely, but setting `retry_max_delay` limits delay\nto maximum value, provided in milliseconds.\n* `connect_timeout` defaults to `false`. By default client will try reconnecting until connected. Setting `connect_timeout`\nlimits total time for client to reconnect. Value is provided in milliseconds and is counted once the disconnect occured.\n* `max_attempts` defaults to `null`. By default client will try reconnecting until connected. Setting `max_attempts`\nlimits total amount of reconnects.\n* `auth_pass` defaults to `null`. By default client will try connecting without auth. If set, client will run redis auth command on connect.\n\n\n## Help\n\nFor more examples, or if you get stuck or have questions, click [here](http://sailsjs.com/support).\n\n\n## Bugs &nbsp; [![NPM version](https://badge.fury.io/js/sails-redis.svg)](http://npmjs.com/package/sails-redis)\n\nTo report a bug, [click here](http://sailsjs.com/bugs).\n\n\n## Contributing &nbsp; [![Build Status](https://travis-ci.org/balderdashy/sails-redis.svg?branch=master)](https://travis-ci.org/balderdashy/sails-redis)\n\nPlease observe the guidelines and conventions laid out in the [Sails project contribution guide](http://sailsjs.com/contribute) when opening issues or submitting pull requests.\n\n[![NPM](https://nodei.co/npm/sails-redis.png?downloads=true)](http://npmjs.com/package/sails-redis)\n\n\n## Acknowledgements\n\nI owe a big thank you to [@ryanc1256](https://github.com/ryanc1256) for all of his work with the original version of this adapter.\n\n## License\n\nThis adapter, like the [Sails framework](http://sailsjs.com), is free and open-source under the [MIT License](http://sailsjs.com/license).\n\n","readmeFilename":"README.md","gitHead":"e215c38332ed527ee7a7b33da71aa148265ab246","bugs":{"url":"https://github.com/balderdashy/sails-redis/issues"},"homepage":"https://github.com/balderdashy/sails-redis#readme","_id":"sails-redis@1.1.0-0","_npmVersion":"6.5.0","_nodeVersion":"8.11.3","_npmUser":{"name":"mikermcneil","email":"npm@sailsjs.com"},"dist":{"integrity":"sha512-V999HWHpqY6Ek7q0lWA0BJmOyqfZlZXbhBfY3AZ2IXTqxKKTwbdtvo9xsHm4uVA3VDk2ogkW7UxSkoGX+rE+mQ==","shasum":"106345b8e2344b1f4e98454e5ef42d989027b655","tarball":"https://registry.npmjs.org/sails-redis/-/sails-redis-1.1.0-0.tgz","fileCount":10,"unpackedSize":28031,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcUm5bCRA9TVsSAnZWagAAqXsP/A+90wqZt+6bQFISOgRN\nqqZHknJHBxrjIA2hNQ1loEBdVCIguzLhTNFllwma/9tkxpkg5Y5kZiDdbFs3\ntClkLoP4hbT0WafEnnLDOPd7JzTkIw1wmzUgC+ASRG2dYaday52zOdDL9HLU\nLFyqOobulY5fUAmMYPq9TZY6lpgd+qKltK+VSM9wCo5MQL1odMOYAbs7xLfk\np+E2T+q/1t7Yrq6SSg5t/IRGMjftPm7shIbJNOlhxOLqCqVrWiDZl9dfVwQm\njrp0+ohdjGNn63wcA/b4eRZ/qttT4+EEVfoMMV8+64nRUt6zE1okPIv4PxMx\noz2HQ+trOjJljLbYXZ03e4QdiayeYYH67NBYP7NT/AJO9j4RJ6IYJnmV9xiV\nIo70NHX72qY4ccNqt5CcqtUTInbOUhYhTLBMipkZvEW5RJek3tol/U2O2YeT\nqzZAHU5LAqudgKYEsfUEkeejcf4Iy9bcMNwhyWzhJU1DahyPd0WFCNdXEPQi\nJPLuxkCbSjIEZh55RO+zixSEK1nUFG83wv2RVrzNr/tfKVWkrRDviBvySXjp\nC9uQpEEgkde21ncIesOIkYrB9V2o4E3MlAvm8a1uGSu7IkrB0sNZ+kG1RDAt\n1xy5q5CXnL0KActUgDudY4fTazXuhllqJ8mIWUEdKB0hLhGyELL76Bbc586L\nBHcB\r\n=Gig5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD4yajeZtytXt36zmhzXR7mSZzf6o3+qixorpcnu51wegIhAPqtRAtXGbHexeM7v5//XIrovAmRYC0FgakPWXyHVSpt"}]},"maintainers":[{"email":"mike@balderdash.co","name":"balderdashy"},{"email":"npm@sailsjs.com","name":"mikermcneil"},{"email":"particlebanana@gmail.com","name":"particlebanana"},{"email":"sgress454@treeline.io","name":"sgress454"},{"email":"matmcfarland@gmail.com","name":"vanetix"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sails-redis_1.1.0-0_1548906074375_0.7375867999086831"},"_hasShrinkwrap":false},"1.1.0-1":{"name":"sails-redis","version":"1.1.0-1","description":"A lightweight Redis adapter for Sails / Node.js apps.  Useful for caching.","author":{"name":"The Sails Company"},"contributors":[{"name":"vanetix","email":" <matmcfarland@gmail.com"},{"name":"Matt McFarland","email":"matmcfarland@gmail.com"},{"name":"Cody Stoltman","email":"particlebanana@gmail.com"},{"name":"Greg Thornton","email":"xdissent@me.com"},{"name":"Carlo DiCelico","email":"carlo@diceli.co"},{"name":"Ryan Clough","email":"me@ryanclough.co.nz"},{"name":"Mike McNeil","email":"humans@sailsjs.com"}],"scripts":{"test":"node ./node_modules/mocha/bin/mocha --reporter spec test/*.js","posttest":"npm run lint","lint":"node ./node_modules/eslint/bin/eslint *.js"},"repository":{"type":"git","url":"git+https://github.com/balderdashy/sails-redis.git"},"keywords":["redis","cache","adapter","sails","sailsjs","sails.js","waterline"],"license":"MIT","engines":{"node":"^6.0"},"dependencies":{"machinepack-redis":"^2.0.0"},"devDependencies":{"captains-log":"^2.0.1","eslint":"4.11.0","mocha":"3.0.2","waterline-adapter-tests":"^1.0.1"},"waterlineAdapter":{"waterlineVersion":"^0.13.0","interfaces":[],"features":[]},"readme":"<h1><span>sails-redis</span><img width=\"175\" alt=\"image_squidhome@2x.png\" src=\"http://i.imgur.com/RIvu9.png\"/></h1>\n\n<h2>Lightweight Redis Adapter for Node.js / Sails Apps</h2>\n\nA lightweight Sails/Waterline adapter for Redis. May be used in a [Sails](http://sailsjs.com) app, or any Node.js module using [Waterline](http://waterlinejs.org) as its ORM.\n\n> #### Heads up\n> **This adapter _does not support the Semantic or Queryable interfaces_.  Instead, it simply provides robust, managed access to the underlying Redis client.**  That means you can't use it to call methods like `.find()`.  Instead, use it as a simple way to easily configure, obtain a connection, and communicate with Redis (e.g. for caching) within the lifecycle of your Node.js / Sails application.\n>\n> **Looking for the old repo?**  See the [for-sails-0.12 branch](https://github.com/balderdashy/sails-redis/tree/for-sails-0.12) of this repo or [ryanc1256/sails-redis](https://github.com/ryanc1256/sails-redis) for examples of conventional adapters that let you use Redis to directly store and query records from your models.\n>\n> **This is an adapter for Sails versions 1.0 and up.**  If you are using an earlier version of Sails (or Waterline &lt;v0.13), check out the [for-sails-0.12 branch](https://github.com/balderdashy/sails-redis/tree/for-sails-0.12).  Since this new release of sails-redis is more lightweight, and does not support the same semantic interface as its predecessor, be aware that there are breaking changes in your app when you upgrade.  But I think you'll find that this new release is a great way to easily communicate with Redis, with minimal interference and a stable API.\n> _If you are interested in upgrading the new, Sails-v1-compatible release of this Redis adapter to support semantic usage (find, create, update, destroy), then please [contact Mike or another core maintainer](http://sailsjs.com/contact)._\n\n\n## Usage\n\n#### Install\n\nInstall is through NPM.\n\n```bash\nnpm install sails-redis\n```\n\n#### Getting started\n\nAfter installing and configuring this adapter (see below), you'll be able to use it to send commands to Redis from your Sails/Node.js app.\n\nFor example:\n\n```javascript\nvar categoryId = 1;//« get from somewhere\n\nsails.getDatastore('cache').leaseConnection(async (db)=>{\n\n  db.get('cached_products_for_category_'+categoryId, function (err, cachedData){\n    if (err) { return proceed(err); }\n\n    var cachedProducts;\n    try {\n      cachedProducts = JSON.parse(cachedData);\n    } catch (e) { return proceed(e); }\n\n    if (cachedProducts) {\n      return proceed(undefined, cachedProducts);\n    }\n\n    // IWMIH, there are no cached products for this category.\n    // So here we might look up the products (Product.find()) to grab them\n    // from some other database (e.g. mysql), then cache them in Redis.\n    // (skipping all that to keep this example short)\n    var newlyCachedProducts = [ /* ... */ ];\n\n    // Finally, when finished:\n    return proceed(undefined, newlyCachedProducts);\n\n  });//</ .get() >\n\n}).exec(function (err, products){\n  if (err) { return res.serverError(err); }\n\n  return res.json(products);\n\n});\n```\n\nNote that the leased connection (`db`) is just a [Redis client instance](https://www.npmjs.com/package/redis).  No need to connect it/bind event listeners-- it's already hot and ready to go.  Any fatal, unexpected errors that would normally be emitted as the \"error\" event are handled by the underlying driver, and can be optionally handled with custom logic by providing a function for `onUnexpectedFailure`.\n\n> Need to use a different Redis client, like ioredis?  Please have a look at the [underlying driver](https://www.npmjs.com/package/machinepack-redis) for the latest info/discussion.\n\n#### Using the Redis client instance\n\nThe documentation for the version of `redis` used in this adapter can be found here:\nhttps://github.com/NodeRedis/node_redis/tree/v.2.8.0#sending-commands\n\n## Configuration\n\nThis adapter supports [standard datastore configuration](http://sailsjs.com/documentation/reference/configuration/sails-config-datastores), as well as some additional low-level options.\n\nFor example, in a Sails app, add the config below to your [`config/datastores.js`](http://sailsjs.com/anatomy/config/datastores-js) file:\n\n```javascript\ncache: {\n  adapter: 'sails-redis',\n  url: 'redis://localhost:6379',\n\n  // Other available low-level options can also be configured here.\n  // (see below for more information)\n},\n```\n\n> Note that you probably shouldn't set Redis as the default datastore for your application (your models wouldn't work!)\n\n\n#### Low-Level Configuration (for redis client)\n\nConfiguration for the underlying Redis client itself is located as an object under the `options`.  The following options are available:\n\n* `parser`: which Redis protocol reply parser to use.  Defaults to `hiredis` if that module is installed.\nThis may also be set to `javascript`.\n* `return_buffers`: defaults to `false`.  If set to `true`, then all replies will be sent to callbacks as node Buffer\nobjects instead of JavaScript Strings.\n* `detect_buffers`: default to `false`. If set to `true`, then replies will be sent to callbacks as node Buffer objects\nif any of the input arguments to the original command were Buffer objects.\nThis option lets you switch between Buffers and Strings on a per-command basis, whereas `return_buffers` applies to\nevery command on a client.\n* `socket_nodelay`: defaults to `true`. Whether to call setNoDelay() on the TCP stream, which disables the\nNagle algorithm on the underlying socket.  Setting this option to `false` can result in additional throughput at the\ncost of more latency.  Most applications will want this set to `true`.\n* `no_ready_check`: defaults to `false`. When a connection is established to the Redis server, the server might still\nbe loading the database from disk.  While loading, the server not respond to any commands.  To work around this,\n`node_redis` has a \"ready check\" which sends the `INFO` command to the server.  The response from the `INFO` command\nindicates whether the server is ready for more commands.  When ready, `node_redis` emits a `ready` event.\nSetting `no_ready_check` to `true` will inhibit this check.\n* `enable_offline_queue`: defaults to `true`. By default, if there is no active\nconnection to the redis server, commands are added to a queue and are executed\nonce the connection has been established. Setting `enable_offline_queue` to\n`false` will disable this feature and the callback will be execute immediately\nwith an error, or an error will be thrown if no callback is specified.\n* `retry_max_delay`: defaults to `null`. By default every time the client tries to connect and fails time before\nreconnection (delay) almost doubles. This delay normally grows infinitely, but setting `retry_max_delay` limits delay\nto maximum value, provided in milliseconds.\n* `connect_timeout` defaults to `false`. By default client will try reconnecting until connected. Setting `connect_timeout`\nlimits total time for client to reconnect. Value is provided in milliseconds and is counted once the disconnect occured.\n* `max_attempts` defaults to `null`. By default client will try reconnecting until connected. Setting `max_attempts`\nlimits total amount of reconnects.\n* `auth_pass` defaults to `null`. By default client will try connecting without auth. If set, client will run redis auth command on connect.\n\n\n## Help\n\nFor more examples, or if you get stuck or have questions, click [here](http://sailsjs.com/support).\n\n\n## Bugs &nbsp; [![NPM version](https://badge.fury.io/js/sails-redis.svg)](http://npmjs.com/package/sails-redis)\n\nTo report a bug, [click here](http://sailsjs.com/bugs).\n\n\n## Contributing &nbsp; [![Build Status](https://travis-ci.org/balderdashy/sails-redis.svg?branch=master)](https://travis-ci.org/balderdashy/sails-redis)\n\nPlease observe the guidelines and conventions laid out in the [Sails project contribution guide](http://sailsjs.com/contribute) when opening issues or submitting pull requests.\n\n[![NPM](https://nodei.co/npm/sails-redis.png?downloads=true)](http://npmjs.com/package/sails-redis)\n\n\n## Acknowledgements\n\nI owe a big thank you to [@ryanc1256](https://github.com/ryanc1256) for all of his work with the original version of this adapter.\n\n## License\n\nThis adapter, like the [Sails framework](http://sailsjs.com), is free and open-source under the [MIT License](http://sailsjs.com/license).\n\n","readmeFilename":"README.md","gitHead":"0ecc7b88c2c934370867f0c24b40646f56285b87","bugs":{"url":"https://github.com/balderdashy/sails-redis/issues"},"homepage":"https://github.com/balderdashy/sails-redis#readme","_id":"sails-redis@1.1.0-1","_npmVersion":"6.5.0","_nodeVersion":"8.11.3","_npmUser":{"name":"mikermcneil","email":"npm@sailsjs.com"},"dist":{"integrity":"sha512-5tP6DKpIOq+H84fLuGnUQw+Rlb7eINqWX6eTouRJuexNm0LtpZWb23RyAn9MuooCiDk7lGp1dHxk2WPkJ96XyA==","shasum":"d710618cd1fba6fb7527ef34a6ce26f8965b56a3","tarball":"https://registry.npmjs.org/sails-redis/-/sails-redis-1.1.0-1.tgz","fileCount":10,"unpackedSize":28022,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcUnARCRA9TVsSAnZWagAA8hIP/Aq69QGQlYJMOcL6IoO+\nT84gXSD2vmmQtSFLarWNrZrZnSgQ9UgMrwNZZXxOmK66uikSMxaFZH3QamDO\nqMMreIQV6ZzLy0hRFfFoqMGGqwhd4CCcCdhR7u0jBJX4j4UrZmoCXZ9PiLo9\nMsn5Ut450DVVyuJp8dzf6MuN89BrI1BQxZYaIvs9DHsLGp4cm5ubEus5DxPh\nm3LjmP9GcZQ8Rl40jigoUZtGRP+H+JIi425fMd01LZ6MSAvYasdde1EO4hOQ\n3ESOVTqmRfmHoA+iZwaVdz09KIyKLCti0FeWIEXgXR6yTJ+bMVqbPiFFH2xq\n55/rqvkks1+OjSsVb49h7wkAtGyOuGXaHXYkUjGUkSGN2Aj8NtrKVOe3kGoD\na2VsnoKZG5VtDI3GZNFOvQSyBO6fjMJqhKslax1nC84+33ZfPOrzKW5G1198\nbNAKhivFVNVr4E/mjxKWlcpBo4vUd91rpjjX1xHqgyTXPw1PcWIw+30jZwxd\nxw4IGzRH3tP/Exvg7FV/8ixXLAFWcc3s//P6In4yesnfP2qiZ/v8uKooJZRx\nduCb2ewYPqQhejB4D5Mk5wPHiIiBOEWM0KZGD51ATPDb6YENOSdvWT0wnQ2A\nVvC/6YSA9cQTMx+3AkiM3uHjABRFNPiTsUwsSjwXriHELl2kA8cFyy89QoR4\n7T85\r\n=14dX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGEPucEex2pLzTUkASav0ld5u5ligNQ3pOkkQr/kmv6GAiBc/A7kCcKynTZuKuIuinTU2R8GFzsOMVTbP8JPQEgBfw=="}]},"maintainers":[{"email":"mike@balderdash.co","name":"balderdashy"},{"email":"npm@sailsjs.com","name":"mikermcneil"},{"email":"particlebanana@gmail.com","name":"particlebanana"},{"email":"sgress454@treeline.io","name":"sgress454"},{"email":"matmcfarland@gmail.com","name":"vanetix"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sails-redis_1.1.0-1_1548906513044_0.6934412408609307"},"_hasShrinkwrap":false}},"readme":"","maintainers":[{"email":"mike@balderdash.co","name":"balderdashy"},{"email":"npm@sailsjs.com","name":"mikermcneil"},{"email":"particlebanana@gmail.com","name":"particlebanana"},{"email":"sgress454@treeline.io","name":"sgress454"},{"email":"matmcfarland@gmail.com","name":"vanetix"}],"time":{"modified":"2022-06-26T15:35:59.722Z","created":"2013-03-02T23:41:25.882Z","0.0.0":"2013-03-02T23:41:26.172Z","0.9.3":"2014-01-11T20:47:22.675Z","0.10.0-rc1":"2014-02-17T22:20:54.632Z","0.10.0-rc2":"2014-05-19T21:27:12.786Z","0.10.1":"2014-08-02T00:34:27.006Z","0.10.2":"2014-08-02T00:37:25.363Z","0.10.3":"2014-09-26T00:27:36.595Z","0.10.4":"2015-06-03T21:27:54.051Z","0.10.5":"2015-08-24T23:43:55.296Z","0.10.6":"2015-11-17T17:17:18.673Z","0.10.7":"2016-01-16T00:51:00.191Z","1.0.0-0":"2017-02-19T23:40:39.862Z","1.0.0":"2018-03-28T17:41:20.415Z","1.1.0-0":"2019-01-31T03:41:14.636Z","1.1.0-1":"2019-01-31T03:48:33.210Z"},"author":{"name":"The Sails Company"},"repository":{"type":"git","url":"git+https://github.com/balderdashy/sails-redis.git"},"readmeFilename":"","homepage":"https://github.com/balderdashy/sails-redis#readme","keywords":["redis","orm","waterline","sails","sailsjs","sails.js"],"contributors":[{"name":"vanetix","email":" <matmcfarland@gmail.com"},{"name":"Matt McFarland","email":"matmcfarland@gmail.com"},{"name":"Cody Stoltman","email":"particlebanana@gmail.com"},{"name":"Greg Thornton","email":"xdissent@me.com"},{"name":"Carlo DiCelico","email":"carlo@diceli.co"},{"name":"Ryan Clough","email":"me@ryanclough.co.nz"},{"name":"Mike McNeil","email":" <mission@sailsjs.com"}],"bugs":{"url":"https://github.com/balderdashy/sails-redis/issues"},"license":"MIT"}