node.js - use hiredis for node_redis -


i using node_redis https://github.com/mranney/node_redis

it says

pieter noordhuis has provided binding official hiredis c library, non-blocking , fast. use hiredis, do:

npm install hiredis redis

i follow instruction , compile hiredis, found hiredis.node located in /node_modules/hiredis/build/release/hiredis.node.

but node_redis located @ /node_modules/redis

i afraid node_redis can find hiredis.node c library.

question:

  1. how can determine if node_redis using hiredis parser?
  2. should move hiredis.node /node_modules/redis directory?
  3. should yum install hiredis? not sure if hiredis.node uses hiredis static library or dynamic library.

according documentation have npm install hiredis redis

var client = redis.createclient(options); console.log(client.reply_parser.name); // retrieve parser name 

check test file in benchmarks folder

edit: can pass parser in options, did in link above l27-31

var options = {      parser: 'hiredis' }; 

Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -