node-redis icon indicating copy to clipboard operation
node-redis copied to clipboard

using Hredis

Open jimsproject opened this issue 13 years ago • 4 comments

Dear All,

is it recommended to using hredis because i see in document "If you use hiredis, be sure to rebuild it whenever you upgrade your version of node. There are mysterious failures that can happen between node and native code modules after a node upgrade."

thank you

then is this libs support for client sharding.?

thank you

jimmy

jimsproject avatar Aug 12 '13 05:08 jimsproject

No, hiredis is not suggested, though it does work. It doesn't provide a significant benefit in most use cases, especially given the potential issues it can bring.

This library does not support sharding currently, as the Redis project itself does not yet have native sharding.

brycebaril avatar Aug 12 '13 06:08 brycebaril

Hi Bryce, thank you for fast reply. btw how to connect redis using persistent connection?

thank you

jimmy

On Mon, Aug 12, 2013 at 1:10 PM, Bryce Baril [email protected]:

No, hiredis is not suggested, though it does work. It doesn't provide a significant benefit in most use cases, especially given the potential issues it can bring.

This library does not support sharding currently, as the Redis project itself does not yet have native sharing.

— Reply to this email directly or view it on GitHubhttps://github.com/mranney/node_redis/issues/473#issuecomment-22474771 .

jimsproject avatar Aug 12 '13 13:08 jimsproject

I'm not sure I understand what you're asking -- connections to Redis through this client should be persistent.

brycebaril avatar Aug 12 '13 13:08 brycebaril

oh Ok, sorry for the question, because i, new in node.js . usually i am using php-redis client which have two way to connect redis through persistent connection and connection.

i thought all client have this two connection method. and im looking for persistent connection.

thank you

On Mon, Aug 12, 2013 at 8:51 PM, Bryce Baril [email protected]:

I'm not sure I understand what you're asking -- connections to Redis through this client should be persistent.

— Reply to this email directly or view it on GitHubhttps://github.com/mranney/node_redis/issues/473#issuecomment-22494265 .

jimsproject avatar Aug 12 '13 14:08 jimsproject