joaojeronimo / node_redis_cluster

A thin wrapper over node_redis to make it work with Redis Cluster
53 stars 17 forks source link

Added (optional) options to the poor mans cluster which may be given with... #1

Closed fdomig closed 11 years ago

fdomig commented 11 years ago

... the specific configuration.

Example configuration:

var cluster = [
    {name: 'redis01', link: '127.0.0.1:6379', slots: [   0, 1363], options: {max_attempts: 5, detect_buffers: true}},
    {name: 'redis01', link: '127.0.0.1:6379', slots: [1364, 2369], options: {no_ready_check: true}},
    {name: 'redis01', link: '127.0.0.1:6379', slots: [2370, 4095], options: {enable_offline_queue: false}}
];
joaojeronimo commented 11 years ago

Looks great, thanks!