{"name":"hiredis","description":"Wrapper for reply processing code in hiredis","version":"0.1.6","homepage":"http://github.com/pietern/hiredis-node","author":{"name":"Pieter Noordhuis","email":"pcnoordhuis@gmail.com"},"main":"hiredis","directories":{"lib":"."},"scripts":{"preinstall":"cd deps/hiredis && make static && cd ../.. && node-waf configure build","test":"expresso"},"engines":{"node":"*"},"_id":"hiredis@0.1.6","_nodeSupported":true,"_npmVersion":"0.2.10-1","_nodeVersion":"v0.3.1","dist":{"shasum":"1b78901cc2912397ef664649aaabe1605369431f","tarball":"http://registry-npm.ywwl.com/hiredis/download/hiredis-0.1.6.tgz","integrity":"sha512-48wviAz0p42GaTTAAvTfx5eOHJwtrrZQdU2fGX4TXu+dHkYfYfB0B7ve3yQBQCjki2ykTUGIBtZ6PbhHG8+7qw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICqc9CycPb0HTfS81G7kLhDc7/LO6K6OzPT/zQlD2A9bAiEAiXO4iPI/t3be3DI4KOq8uAMbXgisLShKch1GVmt000g="}],"size":32885,"noattachment":false,"key":"/hiredis/-/hiredis-0.1.6.tgz"},"readme":"[![Build Status](https://travis-ci.org/redis/hiredis-node.png?branch=master)](https://travis-ci.org/redis/hiredis-node)\n\n# hiredis-node\n\nNode extension that wraps [hiredis][hiredis].\nBecause Node is already good at doing I/O, hiredis-node only provides\nbindings to the protocol parser.\nThe hiredis protocol parser is faster than JavaScript protocol parsers,\nbut the speedup only becomes noticeable for large replies.\nIf you use Redis for simple SET/GET operations, there won't be a big\nbenefit to using hiredis.\nIf you use Redis for big SUNION/SINTER/LRANGE/ZRANGE operations, the\nbenefit to using hiredis-node can be significant.\n\n[hiredis]: http://github.com/redis/hiredis\n\n## Install\n\nInstall with [NPM][npm]:\n\n```\nnpm install hiredis\n```\n\nThis requires:\n* `gcc` / `g++` 4.8 or newer.\n* `python` 2.7 or any newer 2.x version. `python` 3.x is not supported.\n\nFor running on Travis check the bundled [.travis.yml](.travis.yml).\n\n[npm]: https://npmjs.org/\n\n## Contribute\n\nTo work on the code, first fetch the bundled hiredis submodule, then build hiredis and run the tests.\n\n```\ngit submodule update --init\nnpm install\nnpm test\n```\n\n## Usage\n\nhiredis-node works out of the box with Matt Ranney's [node_redis][node_redis].\nThe latter has an optional dependency on hiredis-node, so maybe you're\nalready using it without knowing.\n\nAlternatively, you can use it directly:\n\n```javascript\nvar hiredis = require(\"hiredis\"),\n    reader = new hiredis.Reader();\n\n// Data comes in\nreader.feed(\"$5\\r\\nhello\\r\\n\");\n\n// Reply comes out\nreader.get() // => \"hello\"\n```\n\nInstead of returning strings for bulk payloads, it can also return\nbuffers:\n\n```javascript\nvar hiredis = require(\"hiredis\"),\n    reader = new hiredis.Reader({ return_buffers: true });\n\n// Data comes in\nreader.feed(\"$5\\r\\nhello\\r\\n\");\n\n// Reply comes out\nreader.get() // => <Buffer 68 65 6c 6c 6f>\n```\n\n[node_redis]: http://github.com/mranney/node_redis\n\n## Windows\n\nSince Version 0.3.0 hiredis-node officially supports Windows.\nA simple `npm install hiredis` should just work.\nIf not, please open a bug report.\n\nThere's also a [Windows fork][windows_fork] by Dmitry Gorbunos (@fuwaneko), which should now be unnecessary.\n\n[windows_fork]: https://github.com/fuwaneko/hiredis-node\n\n## License\n\nThis code is released under the BSD license, after the license of hiredis.\n","publish_time":1294233226838,"maintainers":[{"name":"pietern","email":"pcnoordhuis@gmail.com"},{"name":"badboy_","email":"janerik@fnordig.de"}],"_cnpm_publish_time":1294233226838,"dist-tags":{"latest":"0.5.0"}}