redis-sharder

Super simple redis sharding.

npm install redis-sharder
12 downloads in the last week
18 downloads in the last month

node-redis-sharder

A simple sharder for redis, built upon the node-redis library

Usage

Example

var config = {
  servers: [
    {host: '127.0.0.1', port: 6379, weight: 100},
    {host: '127.0.0.1', port: 6379, weight: 100}
  ],
  options: {},
  error_handler: function (err, server) {
      // Handle connection errors
  }
};
var redis = require('./../index.js')(config);

redis.hset([KEY, FIELD, VALUE], function (err, result) {
    // Use result
});

Test

redis-server npm install npm test

License

MIT

npm loves you