{"name":"hiredis","description":"Wrapper for reply processing code in hiredis","version":"0.1.10","homepage":"http://github.com/pietern/hiredis-node","author":{"name":"Pieter Noordhuis","email":"pcnoordhuis@gmail.com"},"main":"hiredis","directories":{"lib":"."},"scripts":{"preinstall":"node-waf configure build","test":"node test/reader.js"},"engines":{"node":"*"},"dependencies":{},"devDependencies":{},"_id":"hiredis@0.1.10","_engineSupported":true,"_npmVersion":"1.0.6","_nodeVersion":"v0.4.7","_defaultsLoaded":true,"dist":{"shasum":"54e3b9981f90cd24befafce453fbb9bb492f5331","bin":{"0.4-ares1.7.4-ev4.4-openssl0.9.8l-v83.1.8.10-darwin-10.7.0":{"shasum":"b2803c0804daba82343c809c26f293a21f6c9ab2","tarball":"http://registry.npmjs.org/hiredis/-/hiredis-0.1.10-0.4-ares1.7.4-ev4.4-openssl0.9.8l-v83.1.8.10-darwin-10.7.0.tgz"}},"tarball":"http://registry-npm.ywwl.com/hiredis/download/hiredis-0.1.10.tgz","integrity":"sha512-DCEI/yCFrMHSzY70wyMDQWBkJRfTrhEMCrceF1UTd5ZGpfO4qRGekeIY5MGD77JwLloKL7KQeZmgiEZduIoDiA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHwgmo0r2+ggWVZNoWnME2X+8wZTgo3Htm6Ye4X+X0ceAiAvkOC/FA9e+3vxnMtNkvXOOR3U3SyoKUQSOVVWCswYAA=="}],"size":53010,"noattachment":false,"key":"/hiredis/-/hiredis-0.1.10.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":1305019549540,"maintainers":[{"name":"pietern","email":"pcnoordhuis@gmail.com"},{"name":"badboy_","email":"janerik@fnordig.de"}],"_cnpm_publish_time":1305019549540,"dist-tags":{"latest":"0.5.0"}}