{"name":"hiredis","description":"Wrapper for reply processing code in hiredis","version":"0.1.12","homepage":"http://github.com/pietern/hiredis-node","author":{"name":"Pieter Noordhuis","email":"pcnoordhuis@gmail.com"},"main":"hiredis","directories":{"lib":"."},"scripts":{"preinstall":"make || gmake","test":"node test/reader.js"},"engines":{"node":"*"},"_npmJsonOpts":{"file":"/Users/pieter/.npm/hiredis/0.1.12/package/package.json","contributors":false,"serverjs":false,"wscript":true},"_id":"hiredis@0.1.12","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.13","_nodeVersion":"v0.4.8","_defaultsLoaded":true,"dist":{"shasum":"cf6158b93b00bf680c43f9726f71251f36f2ea29","tarball":"http://registry-npm.ywwl.com/hiredis/download/hiredis-0.1.12.tgz","integrity":"sha512-wmrdhyvU1p0xOiyQ0/dyUZfK32t312vSK+LNwjv/ojHRetG8qp4hEZ0wbHkdtprN+t1ChoiZDe1UUMabgs4PJg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF3px5Xu6kdDS+ZwbsFqaUnnAhmo91E1t30oShPbiEvVAiEA4Nl8ErOMl0NItnx3sQsOALntItaT7szfmCgyswcm9d0="}],"size":45117,"noattachment":false,"key":"/hiredis/-/hiredis-0.1.12.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":1308490689061,"maintainers":[{"name":"pietern","email":"pcnoordhuis@gmail.com"},{"name":"badboy_","email":"janerik@fnordig.de"}],"_cnpm_publish_time":1308490689061,"dist-tags":{"latest":"0.5.0"}}